Struct mysql::Deserialized [] [src]

pub struct Deserialized<T>(pub T);

Use it to parse T: Deserialize from Value.

Be careful when using this code, it's not being tested!
#[derive(Deserialize)]
struct DeserializableStruct {
    // ...
}
// ...
let (Deserialized(val),): (Deserialized<DeserializableStruct>,)
    = from_row(row_with_single_json_column);

Trait Implementations

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

[src]

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

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

[src]

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

1.3.0
[src]

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

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

[src]

This method tests for !=.

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

[src]

Formats the value using the given formatter.

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

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

[src]

Will panic if could not convert v to Self.

[src]

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

[src]

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

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

[src]

[src]

[src]

[src]

[src]