Enum smtp_message::Localpart
source · [−]pub enum Localpart<S = String> {
Ascii {
raw: S,
},
QuotedAscii {
raw: S,
},
Utf8 {
raw: S,
},
QuotedUtf8 {
raw: S,
},
}
Variants
Ascii
QuotedAscii
Utf8
QuotedUtf8
Implementations
sourceimpl<S> Localpart<S> where
S: AsRef<str>,
impl<S> Localpart<S> where
S: AsRef<str>,
pub fn as_io_slices(&self) -> impl Iterator<Item = IoSlice<'_>>
Trait Implementations
sourceimpl<'de, S> Deserialize<'de> for Localpart<S> where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Localpart<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: Copy> Copy for Localpart<S>
impl<S: Eq> Eq for Localpart<S>
impl<S> StructuralEq for Localpart<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for Localpart<S> where
S: RefUnwindSafe,
impl<S> Send for Localpart<S> where
S: Send,
impl<S> Sync for Localpart<S> where
S: Sync,
impl<S> Unpin for Localpart<S> where
S: Unpin,
impl<S> UnwindSafe for Localpart<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