[][src]Struct muttmates::fields::EMail

pub struct EMail<'a> {
    pub addr: &'a str,
    pub type: EMailType,
    pub pref: bool,
}

The EMAIL field

Example

use muttmates::fields::{EMail, EMailType};

let email = EMail::new("EMAIL;TYPE=WORK:john@doe.example");
assert_eq!(email.addr, "john@doe.example");
assert_eq!(email.r#type, EMailType::Work);

Fields

addr: &'a strtype: EMailTypepref: bool

Methods

impl<'a> EMail<'a>[src]

pub fn new(raw: &'a str) -> EMail[src]

Trait Implementations

impl<'a> PartialEq<EMail<'a>> for EMail<'a>[src]

impl<'a> Display for EMail<'a>[src]

impl<'a> Debug for EMail<'a>[src]

Auto Trait Implementations

impl<'a> Send for EMail<'a>

impl<'a> Sync for EMail<'a>

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]