[][src]Struct humantime_serde::Serde

pub struct Serde<T>(_);

A wrapper type which implements Serialize and Deserialize for types involving SystemTime and Duration.

Implementations

impl<T> Serde<T>[src]

pub fn into_inner(self) -> T[src]

Consumes the De, returning the inner value.

Trait Implementations

impl<T: Clone> Clone for Serde<T>[src]

impl<T: Copy> Copy for Serde<T>[src]

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

impl<T> Deref for Serde<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for Serde<T>[src]

impl<'de> Deserialize<'de> for Serde<Duration>[src]

impl<'de> Deserialize<'de> for Serde<SystemTime>[src]

impl<'de> Deserialize<'de> for Serde<Option<Duration>>[src]

impl<'de> Deserialize<'de> for Serde<Option<SystemTime>>[src]

impl<T: Eq> Eq for Serde<T>[src]

impl<T> From<T> for Serde<T>[src]

impl<T: Hash> Hash for Serde<T>[src]

impl<T: PartialEq> PartialEq<Serde<T>> for Serde<T>[src]

impl<'a> Serialize for Serde<&'a Duration>[src]

impl Serialize for Serde<Duration>[src]

impl<'a> Serialize for Serde<&'a SystemTime>[src]

impl Serialize for Serde<SystemTime>[src]

impl<'a> Serialize for Serde<&'a Option<Duration>>[src]

impl Serialize for Serde<Option<Duration>>[src]

impl<'a> Serialize for Serde<&'a Option<SystemTime>>[src]

impl Serialize for Serde<Option<SystemTime>>[src]

impl<T> StructuralEq for Serde<T>[src]

impl<T> StructuralPartialEq for Serde<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Serde<T> where
    T: RefUnwindSafe

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

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

impl<T> Unpin for Serde<T> where
    T: Unpin

impl<T> UnwindSafe for Serde<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.