Struct mail_parser::Message [−][src]
pub struct Message<'x> {
pub headers_rfc: RfcHeaders<'x>,
pub headers_other: OtherHeaders<'x>,
pub headers_offsets: Vec<HeaderOffset<'x>>,
pub html_body: Vec<MessagePartId>,
pub text_body: Vec<MessagePartId>,
pub attachments: Vec<MessagePartId>,
pub parts: Vec<MessagePart<'x>>,
pub structure: MessageStructure,
pub offset_header: usize,
pub offset_body: usize,
pub offset_end: usize,
pub raw_message: Cow<'x, [u8]>,
}
Expand description
An RFC5322/RFC822 message.
Fields
headers_rfc: RfcHeaders<'x>
headers_other: OtherHeaders<'x>
headers_offsets: Vec<HeaderOffset<'x>>
html_body: Vec<MessagePartId>
text_body: Vec<MessagePartId>
attachments: Vec<MessagePartId>
parts: Vec<MessagePart<'x>>
structure: MessageStructure
offset_header: usize
offset_body: usize
offset_end: usize
raw_message: Cow<'x, [u8]>
Implementations
Returns false
if at least one header field was successfully parsed.
Returns an iterator over the RFC headers of this message.
Returns the BCC header field
Returns the CC header field
Returns all Comments header fields
Returns the From header field
Returns all In-Reply-To header fields
Returns all Keywords 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-Post 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 all Received header fields
Returns all References header fields
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 the message thread name
Returns the To header field
Returns a non-standard header field
Returns the transformed contents an inline HTML body part by position
Returns the transformed contents an inline text body part by position
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
Returns the Content-Description field
Returns the Content-Disposition field
Returns the Content-ID field
Returns the Content-Encoding field
Returns the Content-Type field
Returns the Content-Language field
Returns the Content-Location field
Returns the attachment name, if any.