[−][src]Struct fxa_email_service::types::duration::Duration
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 PartialEq<Duration> for Durationimpl Default for Duration[src]
impl Default for Durationimpl Clone for Duration[src]
impl Clone for Durationfn clone(&self) -> Duration[src]
fn clone(&self) -> Durationfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl From<Duration> for u64[src]
impl From<Duration> for u64impl Debug for Duration[src]
impl Debug for Durationimpl<'v> TryFrom<&'v str> for Duration[src]
impl<'v> TryFrom<&'v str> for Durationtype Error = AppError
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: &str) -> AppResult<Duration>[src]
fn try_from(value: &str) -> AppResult<Duration>impl Serialize for Duration[src]
impl Serialize for Durationfn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, impl<'d> Deserialize<'d> for Duration[src]
impl<'d> Deserialize<'d> for Durationfn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'d>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'d>, Validate and deserialize a
duration from a string
of the format "{number} {period}",
e.g. "1 hour" or "10 minutes".
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, impl<T> Same for T
impl<T> Same for Ttype Output = T
Should always be Self
impl<T> Typeable for T where
T: Any,
impl<T> Typeable for T where
T: Any, impl<T> Configure for T where
T: ?Sized, [src]
impl<T> Configure for T where
T: ?Sized, fn readable(self) -> Readable<Self>[src]
fn readable(self) -> Readable<Self>Marks self as using is_human_readable == true
fn compact(self) -> Compact<Self>[src]
fn compact(self) -> Compact<Self>Marks self as using is_human_readable == false
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized, impl<T> Serialize for T where
T: Serialize + ?Sized, [src]
impl<T> Serialize for T where
T: Serialize + ?Sized, fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>[src]
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>