[−][src]Struct mysql::Deserialized
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> Clone for Deserialized<T> where
T: Clone,
[src]
T: Clone,
pub fn clone(&self) -> Deserialized<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> ConvIr<Deserialized<T>> for DeserializedIr<T> where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
pub fn new(v: Value) -> Result<DeserializedIr<T>, FromValueError>
[src]
pub fn commit(self) -> Deserialized<T>
[src]
pub fn rollback(self) -> Value
[src]
impl<T> Copy for Deserialized<T> where
T: Copy,
[src]
T: Copy,
impl<T> Debug for Deserialized<T> where
T: Debug,
[src]
T: Debug,
impl<T> Eq for Deserialized<T> where
T: Eq,
[src]
T: Eq,
impl<T> FromValue for Deserialized<T> where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
type Intermediate = DeserializedIr<T>
pub fn from_value(v: Value) -> Self
[src]
pub fn from_value_opt(v: Value) -> Result<Self, FromValueError>
[src]
pub fn get_intermediate(v: Value) -> Result<Self::Intermediate, FromValueError>
[src]
impl<T> Hash for Deserialized<T> where
T: Hash,
[src]
T: Hash,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Ord for Deserialized<T> where
T: Ord,
[src]
T: Ord,
pub fn cmp(&self, other: &Deserialized<T>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T> PartialEq<Deserialized<T>> for Deserialized<T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
pub fn eq(&self, other: &Deserialized<T>) -> bool
[src]
pub fn ne(&self, other: &Deserialized<T>) -> bool
[src]
impl<T> PartialOrd<Deserialized<T>> for Deserialized<T> where
T: PartialOrd<T>,
[src]
T: PartialOrd<T>,
pub fn partial_cmp(&self, other: &Deserialized<T>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Deserialized<T>) -> bool
[src]
pub fn le(&self, other: &Deserialized<T>) -> bool
[src]
pub fn gt(&self, other: &Deserialized<T>) -> bool
[src]
pub fn ge(&self, other: &Deserialized<T>) -> bool
[src]
impl<T> StructuralEq for Deserialized<T>
[src]
impl<T> StructuralPartialEq for Deserialized<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Deserialized<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Deserialized<T> where
T: Send,
T: Send,
impl<T> Sync for Deserialized<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Deserialized<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Deserialized<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
impl<T> From<T> for T
[src]
impl<T> FromRow for T where
T: FromValue,
[src]
T: FromValue,
pub fn from_row_opt(row: Row) -> Result<T, FromRowError>
[src]
pub fn from_row(row: Row) -> Self
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,