Struct mysql::Deserialized[][src]

pub struct Deserialized<T>(pub T);

Use it to parse T: Deserialize from Value.

This example is not tested
#[derive(Deserialize)]
struct DeserializableStruct {
    // ...
}
// ...
let (Deserialized(val),): (Deserialized<DeserializableStruct>,)
    = from_row(row_with_single_json_column);

Trait Implementations

impl<T> ConvIr<Deserialized<T>> for DeserializedIr<T> where
    T: DeserializeOwned
[src]

impl<T> PartialOrd<Deserialized<T>> for Deserialized<T> where
    T: PartialOrd<T>, 
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T> Hash for Deserialized<T> where
    T: Hash
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> Clone for Deserialized<T> where
    T: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Debug for Deserialized<T> where
    T: Debug
[src]

Formats the value using the given formatter. Read more

impl<T> Ord for Deserialized<T> where
    T: Ord
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T> FromValue for Deserialized<T> where
    T: DeserializeOwned
[src]

Will panic if could not convert v to Self.

Will return Err(Error::FromValueError(v)) if could not convert v to Self.

Will return Err(Error::FromValueError(v)) if v is not convertible to Self.

impl<T> Copy for Deserialized<T> where
    T: Copy
[src]

impl<T> Eq for Deserialized<T> where
    T: Eq
[src]

impl<T> PartialEq<Deserialized<T>> for Deserialized<T> where
    T: PartialEq<T>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<T> Send for Deserialized<T> where
    T: Send

impl<T> Sync for Deserialized<T> where
    T: Sync