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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.