Enum ethjson::maybe::MaybeEmpty [−][src]
pub enum MaybeEmpty<T> {
Some(T),
None,
}Deserializer of empty string values into optionals.
Variants
Some(T)Some.
NoneNone.
Trait Implementations
impl<T: Debug> Debug for MaybeEmpty<T>[src]
impl<T: Debug> Debug for MaybeEmpty<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for MaybeEmpty<T>[src]
impl<T: PartialEq> PartialEq for MaybeEmpty<T>fn eq(&self, other: &MaybeEmpty<T>) -> bool[src]
fn eq(&self, other: &MaybeEmpty<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &MaybeEmpty<T>) -> bool[src]
fn ne(&self, other: &MaybeEmpty<T>) -> boolThis method tests for !=.
impl<T: Clone> Clone for MaybeEmpty<T>[src]
impl<T: Clone> Clone for MaybeEmpty<T>fn clone(&self) -> MaybeEmpty<T>[src]
fn clone(&self) -> MaybeEmpty<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<'a, T> Deserialize<'a> for MaybeEmpty<T> where
T: Deserialize<'a>, [src]
impl<'a, T> Deserialize<'a> for MaybeEmpty<T> where
T: Deserialize<'a>, fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>, Deserialize this value from the given Serde deserializer. Read more
impl<T> Into<Option<T>> for MaybeEmpty<T>[src]
impl<T> Into<Option<T>> for MaybeEmpty<T>Auto Trait Implementations
impl<T> Send for MaybeEmpty<T> where
T: Send,
impl<T> Send for MaybeEmpty<T> where
T: Send, impl<T> Sync for MaybeEmpty<T> where
T: Sync,
impl<T> Sync for MaybeEmpty<T> where
T: Sync,