pub struct EmailMetadataDocument {
pub from: EmailEntity,
pub to: Vec<EmailEntity>,
pub cc: Vec<EmailEntity>,
pub bcc: Vec<EmailEntity>,
pub subject: Option<String>,
pub date: Option<String>,
pub message_id: Option<String>,
pub headers: Vec<EmailHeader>,
pub attachments: Vec<EmailAttachment>,
}Expand description
JSON document version of the email metadata, extracts
Fields§
§from: EmailEntitySource of the email
to: Vec<EmailEntity>Destination of the email
cc: Vec<EmailEntity>cc’ed emails
bcc: Vec<EmailEntity>bcc’ed emails
subject: Option<String>Email subject line
date: Option<String>Send date of the email (rfc3339)
message_id: Option<String>Optional message ID
headers: Vec<EmailHeader>Collection of headers
attachments: Vec<EmailAttachment>List of attachments
Trait Implementations§
Source§impl Debug for EmailMetadataDocument
impl Debug for EmailMetadataDocument
Source§impl<'de> Deserialize<'de> for EmailMetadataDocument
impl<'de> Deserialize<'de> for EmailMetadataDocument
Source§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
Auto Trait Implementations§
impl Freeze for EmailMetadataDocument
impl RefUnwindSafe for EmailMetadataDocument
impl Send for EmailMetadataDocument
impl Sync for EmailMetadataDocument
impl Unpin for EmailMetadataDocument
impl UnwindSafe for EmailMetadataDocument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.