pub struct Automation {
pub id: i64,
pub name: String,
pub enabled: Option<i64>,
pub event_type: Option<String>,
pub conditions: Option<Value>,
pub actions: Option<Value>,
pub blocks: Option<Value>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub extra: Extra,
}Expand description
An automation (event→action rule) row, JSON-TEXT columns parsed by the daemon
(api/v1/automations.rs::automation_response).
Fields§
§id: i64§name: String§enabled: Option<i64>§event_type: Option<String>§conditions: Option<Value>§actions: Option<Value>§blocks: Option<Value>§created_at: Option<String>§updated_at: Option<String>§extra: ExtraTrait Implementations§
Source§impl Clone for Automation
impl Clone for Automation
Source§fn clone(&self) -> Automation
fn clone(&self) -> Automation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Automation
impl Debug for Automation
Source§impl Default for Automation
impl Default for Automation
Source§fn default() -> Automation
fn default() -> Automation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Automationwhere
Automation: Default,
impl<'de> Deserialize<'de> for Automationwhere
Automation: Default,
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
Auto Trait Implementations§
impl Freeze for Automation
impl RefUnwindSafe for Automation
impl Send for Automation
impl Sync for Automation
impl Unpin for Automation
impl UnsafeUnpin for Automation
impl UnwindSafe for Automation
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