pub enum VariantOrUnknownOrEmpty<T> {
Item(T),
Unknown(String),
Empty,
}
Variants
Item(T)
Unknown(String)
Empty
Implementations
sourceimpl<T> VariantOrUnknownOrEmpty<T>
impl<T> VariantOrUnknownOrEmpty<T>
Trait Implementations
sourceimpl<T: Clone> Clone for VariantOrUnknownOrEmpty<T>
impl<T: Clone> Clone for VariantOrUnknownOrEmpty<T>
sourcefn clone(&self) -> VariantOrUnknownOrEmpty<T>
fn clone(&self) -> VariantOrUnknownOrEmpty<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for VariantOrUnknownOrEmpty<T>
impl<T: Debug> Debug for VariantOrUnknownOrEmpty<T>
sourceimpl<T> Default for VariantOrUnknownOrEmpty<T>
impl<T> Default for VariantOrUnknownOrEmpty<T>
sourceimpl<'de, T> Deserialize<'de> for VariantOrUnknownOrEmpty<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for VariantOrUnknownOrEmpty<T>where
T: 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
sourceimpl<T: PartialEq> PartialEq<VariantOrUnknownOrEmpty<T>> for VariantOrUnknownOrEmpty<T>
impl<T: PartialEq> PartialEq<VariantOrUnknownOrEmpty<T>> for VariantOrUnknownOrEmpty<T>
sourcefn eq(&self, other: &VariantOrUnknownOrEmpty<T>) -> bool
fn eq(&self, other: &VariantOrUnknownOrEmpty<T>) -> bool
sourceimpl<T> Serialize for VariantOrUnknownOrEmpty<T>where
T: Serialize,
impl<T> Serialize for VariantOrUnknownOrEmpty<T>where
T: Serialize,
impl<T> StructuralPartialEq for VariantOrUnknownOrEmpty<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for VariantOrUnknownOrEmpty<T>where
T: RefUnwindSafe,
impl<T> Send for VariantOrUnknownOrEmpty<T>where
T: Send,
impl<T> Sync for VariantOrUnknownOrEmpty<T>where
T: Sync,
impl<T> Unpin for VariantOrUnknownOrEmpty<T>where
T: Unpin,
impl<T> UnwindSafe for VariantOrUnknownOrEmpty<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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