Struct mysql_common::value::json::Deserialized [−][src]
pub struct Deserialized<T>(pub T);
Use it to parse T: Deserialize from Value.
#[derive(Deserialize)] struct DeserializableStruct { // ... } // ... let (Deserialized(val),): (Deserialized<DeserializableStruct>,) = from_row(row_with_single_json_column);
Trait Implementations
impl<T: DeserializeOwned> ConvIr<Deserialized<T>> for DeserializedIr<T>[src]
impl<T: DeserializeOwned> ConvIr<Deserialized<T>> for DeserializedIr<T>fn new(v: Value) -> Result<DeserializedIr<T>, FromValueError>[src]
fn new(v: Value) -> Result<DeserializedIr<T>, FromValueError>fn commit(self) -> Deserialized<T>[src]
fn commit(self) -> Deserialized<T>fn rollback(self) -> Value[src]
fn rollback(self) -> Valueimpl<T: DeserializeOwned> FromValue for Deserialized<T>[src]
impl<T: DeserializeOwned> FromValue for Deserialized<T>type Intermediate = DeserializedIr<T>
fn from_value(v: Value) -> Self[src]
fn from_value(v: Value) -> SelfWill panic if could not convert v to Self.
fn from_value_opt(v: Value) -> Result<Self, FromValueError>[src]
fn from_value_opt(v: Value) -> Result<Self, FromValueError>Will return Err(Error::FromValueError(v)) if could not convert v to Self.
fn get_intermediate(v: Value) -> Result<Self::Intermediate, FromValueError>[src]
fn get_intermediate(v: Value) -> Result<Self::Intermediate, FromValueError>Will return Err(Error::FromValueError(v)) if v is not convertible to Self.
impl<T: Clone> Clone for Deserialized<T>[src]
impl<T: Clone> Clone for Deserialized<T>fn clone(&self) -> Deserialized<T>[src]
fn clone(&self) -> Deserialized<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)Performs copy-assignment from source. Read more
impl<T: Copy> Copy for Deserialized<T>[src]
impl<T: Copy> Copy for Deserialized<T>impl<T: PartialEq> PartialEq for Deserialized<T>[src]
impl<T: PartialEq> PartialEq for Deserialized<T>fn eq(&self, other: &Deserialized<T>) -> bool[src]
fn eq(&self, other: &Deserialized<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Deserialized<T>) -> bool[src]
fn ne(&self, other: &Deserialized<T>) -> boolThis method tests for !=.
impl<T: PartialOrd> PartialOrd for Deserialized<T>[src]
impl<T: PartialOrd> PartialOrd for Deserialized<T>fn partial_cmp(&self, other: &Deserialized<T>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Deserialized<T>) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Deserialized<T>) -> bool[src]
fn lt(&self, other: &Deserialized<T>) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Deserialized<T>) -> bool[src]
fn le(&self, other: &Deserialized<T>) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Deserialized<T>) -> bool[src]
fn gt(&self, other: &Deserialized<T>) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Deserialized<T>) -> bool[src]
fn ge(&self, other: &Deserialized<T>) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<T: Eq> Eq for Deserialized<T>[src]
impl<T: Eq> Eq for Deserialized<T>impl<T: Ord> Ord for Deserialized<T>[src]
impl<T: Ord> Ord for Deserialized<T>fn cmp(&self, other: &Deserialized<T>) -> Ordering[src]
fn cmp(&self, other: &Deserialized<T>) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl<T: Debug> Debug for Deserialized<T>[src]
impl<T: Debug> Debug for Deserialized<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: Hash> Hash for Deserialized<T>[src]
impl<T: Hash> Hash for Deserialized<T>Auto Trait Implementations
impl<T> Send for Deserialized<T> where
T: Send,
impl<T> Send for Deserialized<T> where
T: Send, impl<T> Sync for Deserialized<T> where
T: Sync,
impl<T> Sync for Deserialized<T> where
T: Sync,