[][src]Struct fxa_email_service::types::duration::Duration

pub struct Duration(pub u64);

A duration type represented in milliseconds, for compatibility with the rest of the FxA ecosystem.

Can be deserialized from duration strings of the format "{number} {period}", e.g. "1 hour" or "10 minutes".

Trait Implementations

impl PartialEq<Duration> for Duration
[src]

impl Default for Duration
[src]

impl Clone for Duration
[src]

Performs copy-assignment from source. Read more

impl From<Duration> for u64
[src]

impl Debug for Duration
[src]

impl<'v> TryFrom<&'v str> for Duration
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl Serialize for Duration
[src]

impl<'d> Deserialize<'d> for Duration
[src]

Validate and deserialize a duration from a string of the format "{number} {period}", e.g. "1 hour" or "10 minutes".

Auto Trait Implementations

impl Send for Duration

impl Sync for Duration

Blanket Implementations

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

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

impl<T> From for T
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

impl<T> Same for T

Should always be Self

impl<T> Typeable for T where
    T: Any

Get the TypeId of this object.

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

Marks self as using is_human_readable == true

Marks self as using is_human_readable == false

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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