pub struct Email {
pub headers: HashMap<String, EmailHeader>,
pub body: String,
pub children: Vec<Email>,
}
Expand description
Email represents an Email object and contains all the properties and data related to an email
Fields§
§headers: HashMap<String, EmailHeader>
All the Headers for top level Email.
body: String
body of the email is going to be stored as a string for now since we are going to parse only simple emails.
children: Vec<Email>
Children are child Email objects in case of multipart emails.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Email
impl RefUnwindSafe for Email
impl Send for Email
impl Sync for Email
impl Unpin for Email
impl UnwindSafe for Email
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