Enum smtp_message::MaybeUtf8
source · [−]pub enum MaybeUtf8<S = String> {
Ascii(S),
Utf8(S),
}
Variants
Ascii(S)
Utf8(S)
Implementations
Trait Implementations
sourceimpl<'de, S> Deserialize<'de> for MaybeUtf8<S> where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for MaybeUtf8<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 MaybeUtf8<S>
impl<S: Eq> Eq for MaybeUtf8<S>
impl<S> StructuralEq for MaybeUtf8<S>
impl<S> StructuralPartialEq for MaybeUtf8<S>
Auto Trait Implementations
impl<S> RefUnwindSafe for MaybeUtf8<S> where
S: RefUnwindSafe,
impl<S> Send for MaybeUtf8<S> where
S: Send,
impl<S> Sync for MaybeUtf8<S> where
S: Sync,
impl<S> Unpin for MaybeUtf8<S> where
S: Unpin,
impl<S> UnwindSafe for MaybeUtf8<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