Struct aws_sdk_appmesh::types::Duration
source · #[non_exhaustive]pub struct Duration {
pub value: Option<i64>,
pub unit: Option<DurationUnit>,
}
Expand description
An object that represents a duration of time.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.value: Option<i64>
A number of time units.
unit: Option<DurationUnit>
A unit of time.
Implementations§
Trait Implementations§
source§impl PartialEq<Duration> for Duration
impl PartialEq<Duration> for Duration
impl StructuralPartialEq for Duration
Auto Trait Implementations§
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnwindSafe for Duration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more