Struct aws_sdk_appmesh::types::builders::DurationBuilder
source · #[non_exhaustive]pub struct DurationBuilder { /* private fields */ }
Expand description
A builder for Duration
.
Implementations§
source§impl DurationBuilder
impl DurationBuilder
sourcepub fn unit(self, input: DurationUnit) -> Self
pub fn unit(self, input: DurationUnit) -> Self
A unit of time.
sourcepub fn set_unit(self, input: Option<DurationUnit>) -> Self
pub fn set_unit(self, input: Option<DurationUnit>) -> Self
A unit of time.
sourcepub fn get_unit(&self) -> &Option<DurationUnit>
pub fn get_unit(&self) -> &Option<DurationUnit>
A unit of time.
Trait Implementations§
source§impl Clone for DurationBuilder
impl Clone for DurationBuilder
source§fn clone(&self) -> DurationBuilder
fn clone(&self) -> DurationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DurationBuilder
impl Debug for DurationBuilder
source§impl Default for DurationBuilder
impl Default for DurationBuilder
source§fn default() -> DurationBuilder
fn default() -> DurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DurationBuilder
impl PartialEq for DurationBuilder
source§fn eq(&self, other: &DurationBuilder) -> bool
fn eq(&self, other: &DurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DurationBuilder
Auto Trait Implementations§
impl Freeze for DurationBuilder
impl RefUnwindSafe for DurationBuilder
impl Send for DurationBuilder
impl Sync for DurationBuilder
impl Unpin for DurationBuilder
impl UnwindSafe for DurationBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.