pub struct Mailbox<'a> {
pub name: Option<Vec<Cow<'a, str>>>,
pub address: EmailAddress<'a>,
}
Fields§
§name: Option<Vec<Cow<'a, str>>>
The name associated with an email.
Each name is stored individually in the Vec
. For example “Elton John” results in Some(["Elton", "John"])
.
Be aware that might also get Some(["Elton John"])
when the mime
feature is enabled because whitespaces may appear after decoding encoded data.
address: EmailAddress<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Mailbox<'a>
impl<'a> RefUnwindSafe for Mailbox<'a>
impl<'a> Send for Mailbox<'a>
impl<'a> Sync for Mailbox<'a>
impl<'a> Unpin for Mailbox<'a>
impl<'a> UnwindSafe for Mailbox<'a>
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