summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKartikaya Gupta <kats@seldon.staktrace.com>2017-10-14 00:16:08 -0400
committerKartikaya Gupta <kats@seldon.staktrace.com>2017-10-14 00:16:08 -0400
commited032333a1bde0498d46132609330a9f92a52ab1 (patch)
tree7deac9b2a92123de7f1985231632162bffebb36b /src
parent24a48fbc89c4aedbd3b1a7fd785e0e9c226174ba (diff)
Add missing function doc
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9ba8535..fc5ec35 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -719,6 +719,11 @@ impl<'a> ParsedMail<'a> {
Ok(decoded)
}
+ /// Returns a struct containing a parsed representation of the
+ /// Content-Disposition header. The first header with this name
+ /// is used, if there are multiple. See the `parse_content_disposition`
+ /// method documentation for more details on the semantics of the
+ /// returned object.
pub fn get_content_disposition(&self) -> Result<ParsedContentDisposition, MailParseError> {
let disposition = self.headers
.get_first_value("Content-Disposition")?