[][src]Struct email_rs::email::Email

pub struct Email {
    pub headers: HashMap<String, String>,
    pub body: String,
    pub children: Vec<Email>,
}

Email represents an Email object and contains all the properties and data related to an email

Fields

headers: HashMap<String, String>

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.

Methods

impl Email[src]

pub fn from_str(s: String) -> Email[src]

generate an Email from string object.

Trait Implementations

impl Debug for Email[src]

Auto Trait Implementations

impl Sync for Email

impl Unpin for Email

impl Send for Email

impl UnwindSafe for Email

impl RefUnwindSafe for Email

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]