Struct mysql::Deserialized [] [src]

pub struct Deserialized<T>(pub T);

Use it to parse T: Decodable from Value.

#[derive(RustcDecodable)]
struct DecodableStruct {
    // ...
}
// ...
let (Deserialized(val),): (Deserialized<DecodableStruct>,)
    = from_row(row_with_single_json_column);

Trait Implementations

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

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

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

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

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

Formats the value using the given formatter.

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 !=.

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> 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> Clone for Deserialized<T> where
    T: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more