Struct rusoto_iotevents_data::AlarmState
source · [−]pub struct AlarmState {
pub customer_action: Option<CustomerAction>,
pub rule_evaluation: Option<RuleEvaluation>,
pub state_name: Option<String>,
pub system_event: Option<SystemEvent>,
}
Expand description
Contains information about the current state of the alarm.
Fields
customer_action: Option<CustomerAction>
Contains information about the action that you can take to respond to the alarm.
rule_evaluation: Option<RuleEvaluation>
Information needed to evaluate data.
state_name: Option<String>
The name of the alarm state. The state name can be one of the following values:
-
DISABLED
- When the alarm is in theDISABLED
state, it isn't ready to evaluate data. To enable the alarm, you must change the alarm to theNORMAL
state. -
NORMAL
- When the alarm is in theNORMAL
state, it's ready to evaluate data. -
ACTIVE
- If the alarm is in theACTIVE
state, the alarm is invoked. -
ACKNOWLEDGED
- When the alarm is in theACKNOWLEDGED
state, the alarm was invoked and you acknowledged the alarm. -
SNOOZEDISABLED
- When the alarm is in theSNOOZEDISABLED
state, the alarm is disabled for a specified period of time. After the snooze time, the alarm automatically changes to theNORMAL
state. -
LATCHED
- When the alarm is in theLATCHED
state, the alarm was invoked. However, the data that the alarm is currently evaluating is within the specified range. To change the alarm to theNORMAL
state, you must acknowledge the alarm.
system_event: Option<SystemEvent>
Contains information about alarm state changes.
Trait Implementations
sourceimpl Clone for AlarmState
impl Clone for AlarmState
sourcefn clone(&self) -> AlarmState
fn clone(&self) -> AlarmState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AlarmState
impl Debug for AlarmState
sourceimpl Default for AlarmState
impl Default for AlarmState
sourcefn default() -> AlarmState
fn default() -> AlarmState
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AlarmState
impl<'de> Deserialize<'de> for AlarmState
sourcefn 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
sourceimpl PartialEq<AlarmState> for AlarmState
impl PartialEq<AlarmState> for AlarmState
sourcefn eq(&self, other: &AlarmState) -> bool
fn eq(&self, other: &AlarmState) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AlarmState) -> bool
fn ne(&self, other: &AlarmState) -> bool
This method tests for !=
.
impl StructuralPartialEq for AlarmState
Auto Trait Implementations
impl RefUnwindSafe for AlarmState
impl Send for AlarmState
impl Sync for AlarmState
impl Unpin for AlarmState
impl UnwindSafe for AlarmState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more