Struct aws_sdk_iotevents::types::SetTimerAction
source · #[non_exhaustive]pub struct SetTimerAction {
pub timer_name: String,
pub seconds: Option<i32>,
pub duration_expression: Option<String>,
}
Expand description
Information needed to set the timer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.timer_name: String
The name of the timer.
seconds: Option<i32>
The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.
duration_expression: Option<String>
The duration of the timer, in seconds. You can use a string expression that includes numbers, variables ($variable.
), and input values ($input.
) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.
Implementations§
source§impl SetTimerAction
impl SetTimerAction
sourcepub fn timer_name(&self) -> &str
pub fn timer_name(&self) -> &str
The name of the timer.
sourcepub fn seconds(&self) -> Option<i32>
👎Deprecated: seconds is deprecated. You can use durationExpression for SetTimerAction. The value of seconds can be used as a string expression for durationExpression.
pub fn seconds(&self) -> Option<i32>
The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.
sourcepub fn duration_expression(&self) -> Option<&str>
pub fn duration_expression(&self) -> Option<&str>
The duration of the timer, in seconds. You can use a string expression that includes numbers, variables ($variable.
), and input values ($input.
) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.
source§impl SetTimerAction
impl SetTimerAction
sourcepub fn builder() -> SetTimerActionBuilder
pub fn builder() -> SetTimerActionBuilder
Creates a new builder-style object to manufacture SetTimerAction
.
Trait Implementations§
source§impl Clone for SetTimerAction
impl Clone for SetTimerAction
source§fn clone(&self) -> SetTimerAction
fn clone(&self) -> SetTimerAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetTimerAction
impl Debug for SetTimerAction
source§impl PartialEq for SetTimerAction
impl PartialEq for SetTimerAction
source§fn eq(&self, other: &SetTimerAction) -> bool
fn eq(&self, other: &SetTimerAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SetTimerAction
Auto Trait Implementations§
impl Freeze for SetTimerAction
impl RefUnwindSafe for SetTimerAction
impl Send for SetTimerAction
impl Sync for SetTimerAction
impl Unpin for SetTimerAction
impl UnwindSafe for SetTimerAction
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
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>
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>
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 more