Struct mailparse::body::BinaryBody [−][src]
pub struct BinaryBody<'a> { /* fields omitted */ }
Expand description
Struct that holds a binary body representation of the message (or message subpart).
Implementations
Get the body Content-Type
Get the raw body of the message exactly as it is written in the message (or message subpart).
Get the body of the message as a Rust string. This function attempts to convert the body into a Rust UTF-8 string using the charset in the Content-Type header (or “us-ascii” as default). However, this may not always work for “binary” data. The API is provided anyway for convenient handling of real-world emails that may provide textual data with a binary transfer encoding, but use this at your own risk!
Auto Trait Implementations
impl<'a> RefUnwindSafe for BinaryBody<'a>
impl<'a> Send for BinaryBody<'a>
impl<'a> Sync for BinaryBody<'a>
impl<'a> Unpin for BinaryBody<'a>
impl<'a> UnwindSafe for BinaryBody<'a>