#[repr(u8)]pub enum TriggerActivationReason {
Userinitiated = 0,
Automation = 1,
Emergency = 2,
Doorbellpressed = 3,
}Variants§
Userinitiated = 0
Trigger has been activated by user action
Automation = 1
Trigger has been activated by automation
Emergency = 2
Trigger has been activated for emergency reasons
Doorbellpressed = 3
Trigger has been activated by a doorbell press
Implementations§
Trait Implementations§
Source§impl Clone for TriggerActivationReason
impl Clone for TriggerActivationReason
Source§fn clone(&self) -> TriggerActivationReason
fn clone(&self) -> TriggerActivationReason
Returns a duplicate 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 TriggerActivationReason
impl Debug for TriggerActivationReason
Source§impl<'de> Deserialize<'de> for TriggerActivationReason
impl<'de> Deserialize<'de> for TriggerActivationReason
Source§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
Source§impl From<TriggerActivationReason> for u8
impl From<TriggerActivationReason> for u8
Source§fn from(val: TriggerActivationReason) -> Self
fn from(val: TriggerActivationReason) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TriggerActivationReason
impl PartialEq for TriggerActivationReason
Source§impl Serialize for TriggerActivationReason
impl Serialize for TriggerActivationReason
impl Copy for TriggerActivationReason
impl Eq for TriggerActivationReason
impl StructuralPartialEq for TriggerActivationReason
Auto Trait Implementations§
impl Freeze for TriggerActivationReason
impl RefUnwindSafe for TriggerActivationReason
impl Send for TriggerActivationReason
impl Sync for TriggerActivationReason
impl Unpin for TriggerActivationReason
impl UnwindSafe for TriggerActivationReason
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