Struct smtp_message::Email
source · [−]Fields
localpart: Localpart<S>
hostname: Option<Hostname<S>>
Implementations
sourceimpl<S> Email<S>
impl<S> Email<S>
sourcepub fn parse_until<'a, 'b>(
term: &'b [u8],
term_with_atsign: &'b [u8]
) -> impl 'b + FnMut(&'a [u8]) -> IResult<&'a [u8], Email<S>> where
'a: 'b,
S: 'b + From<&'a str>,
pub fn parse_until<'a, 'b>(
term: &'b [u8],
term_with_atsign: &'b [u8]
) -> impl 'b + FnMut(&'a [u8]) -> IResult<&'a [u8], Email<S>> where
'a: 'b,
S: 'b + From<&'a str>,
term_with_atsign must be term + b“@“
pub fn parse_bracketed<'a>(
buf: &'a [u8]
) -> Result<Email<S>, Err<Error<&'a [u8]>>> where
S: From<&'a str>,
Trait Implementations
sourceimpl<'de, S> Deserialize<'de> for Email<S> where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Email<S> where
S: Deserialize<'de>,
sourcefn 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
impl<S: Eq> Eq for Email<S>
impl<S> StructuralEq for Email<S>
impl<S> StructuralPartialEq for Email<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for Email<S> where
S: RefUnwindSafe,
impl<S> Send for Email<S> where
S: Send,
impl<S> Sync for Email<S> where
S: Sync,
impl<S> Unpin for Email<S> where
S: Unpin,
impl<S> UnwindSafe for Email<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more