Struct aws_lambda_events::encodings::MinuteDuration [−][src]
pub struct MinuteDuration(pub Duration);
Expand description
Duration with minute precision.
Tuple Fields
0: Duration
Methods from Deref<Target = Duration>
Returns the total number of whole minutes in the duration.
Returns the total number of whole seconds in the duration.
Returns the total number of whole milliseconds in the duration,
Returns the total number of whole microseconds in the duration,
or None
on overflow (exceeding 263 microseconds in either direction).
Returns the total number of whole nanoseconds in the duration,
or None
on overflow (exceeding 263 nanoseconds in either direction).
Add two durations, returning None
if overflow occurred.
Subtract two durations, returning None
if overflow occurred.
Creates a std::time::Duration
object from time::Duration
This function errors when duration is less than zero. As standard library implementation is limited to non-negative values.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MinuteDuration
impl Send for MinuteDuration
impl Sync for MinuteDuration
impl Unpin for MinuteDuration
impl UnwindSafe for MinuteDuration
Blanket Implementations
Mutably borrows from an owned value. Read more