Struct mail_parser::Message [−][src]
pub struct Message<'x> { /* fields omitted */ }
Expand description
An RFC5322/RFC822 message.
Implementations
Returns false
if at least one header field was successfully parsed.
Parses a byte slice containing the RFC5322 raw message and returns a
Message
struct.
This function never panics, a best-effort is made to parse the message and
if no headers are found and empty Message
struct is returned.
To make sure parsing was successfull use is_empty()
.
Returns all In-Reply-To header fields
Returns the List-Archive header field
Returns the List-Help header field
Returns the List-ID header field
Returns the List-Owner header field
Returns the List-Port header field
Returns the List-Subscribe header field
Returns the List-Unsubscribe header field
Returns the Message-ID header field
Returns the MIME-Version header field
Returns the Reply-To header field
Returns the Resent-BCC header field
Returns the Resent-CC header field
Returns all Resent-Date header fields
Returns the Resent-From header field
Returns all Resent-Message-ID header fields
Returns the Sender header field
Returns the Resent-To header field
Returns all Return-Path header fields
Returns the Sender header field
Returns the Subject header field
Returns any other message header not specified in RFCs 5322, 2045-2049, 2183, 2369 or 2919.
Returns an inline HTML body part by position
Returns an inline text body part by position
Returns an attacment by position
Returns the number of plain text body parts
Returns the number of HTML body parts
Returns the number of attachments
Returns an Interator over the text body parts
Returns an Interator over the HTML body parts
Returns an Interator over the attachments
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Content-Description MIME header
Content-Disposition MIME header
Content-ID MIME header
Content-Transfer-Encoding MIME header
Content-Type MIME header