Struct aws_lambda_events::encodings::SecondDuration [−][src]
pub struct SecondDuration(pub Duration);
Expand description
Duration with second 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 SecondDuration
impl Send for SecondDuration
impl Sync for SecondDuration
impl Unpin for SecondDuration
impl UnwindSafe for SecondDuration
Blanket Implementations
Mutably borrows from an owned value. Read more