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]
T: PartialOrd<T>,
fn partial_cmp(&self, __arg_0: &Deserialized<T>) -> Option<Ordering>
fn lt(&self, __arg_0: &Deserialized<T>) -> bool
fn le(&self, __arg_0: &Deserialized<T>) -> bool
fn gt(&self, __arg_0: &Deserialized<T>) -> bool
fn ge(&self, __arg_0: &Deserialized<T>) -> bool
impl<T> Eq for Deserialized<T> where
T: Eq,
[src]
T: Eq,
impl<T> Copy for Deserialized<T> where
T: Copy,
[src]
T: Copy,
impl<T> Ord for Deserialized<T> where
T: Ord,
[src]
T: Ord,
fn cmp(&self, __arg_0: &Deserialized<T>) -> Ordering
impl<T> Debug for Deserialized<T> where
T: Debug,
[src]
T: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl<T> PartialEq<Deserialized<T>> for Deserialized<T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
fn eq(&self, __arg_0: &Deserialized<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Deserialized<T>) -> bool
This method tests for !=
.
impl<T> Hash for Deserialized<T> where
T: Hash,
[src]
T: Hash,
fn hash<__HT>(&self, __arg_0: &mut __HT) where
__HT: Hasher,
__HT: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T> FromValue for Deserialized<T> where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
type Intermediate = DeserializedIr<T>
fn from_value(v: Value) -> Self
Will panic if could not convert v
to Self
.
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>
Will return Err(Error::FromValueError(v))
if v
is not convertible to Self
.
impl<T> Clone for Deserialized<T> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> Deserialized<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more