pub enum MaybeEmpty<T> {
Some(T),
None,
}Expand description
Deserializer of empty string values into optionals.
Variants§
Trait Implementations§
Source§impl<T: Clone> Clone for MaybeEmpty<T>
impl<T: Clone> Clone for MaybeEmpty<T>
Source§fn clone(&self) -> MaybeEmpty<T>
fn clone(&self) -> MaybeEmpty<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for MaybeEmpty<T>
impl<T: Debug> Debug for MaybeEmpty<T>
Source§impl Default for MaybeEmpty<Uint>
impl Default for MaybeEmpty<Uint>
Source§impl<'a, T> Deserialize<'a> for MaybeEmpty<T>where
T: Deserialize<'a>,
impl<'a, T> Deserialize<'a> for MaybeEmpty<T>where
T: Deserialize<'a>,
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Into<Option<T>> for MaybeEmpty<T>
impl<T> Into<Option<T>> for MaybeEmpty<T>
Source§impl<T: PartialEq> PartialEq for MaybeEmpty<T>
impl<T: PartialEq> PartialEq for MaybeEmpty<T>
impl<T> StructuralPartialEq for MaybeEmpty<T>
Auto Trait Implementations§
impl<T> Freeze for MaybeEmpty<T>where
T: Freeze,
impl<T> RefUnwindSafe for MaybeEmpty<T>where
T: RefUnwindSafe,
impl<T> Send for MaybeEmpty<T>where
T: Send,
impl<T> Sync for MaybeEmpty<T>where
T: Sync,
impl<T> Unpin for MaybeEmpty<T>where
T: Unpin,
impl<T> UnwindSafe for MaybeEmpty<T>where
T: UnwindSafe,
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