pub struct Automation {
pub id: String,
pub workspace: String,
pub trigger: Trigger,
pub template: SpawnTemplate,
pub enabled: bool,
pub created_at: String,
pub last_fired_at: Option<String>,
}Expand description
A configured automation.
Fields§
§id: StringOperator-chosen id (the registry key, unique across the fleet).
workspace: StringTarget workspace name.
trigger: TriggerWhat fires it.
template: SpawnTemplateWhat it spawns.
enabled: boolDisabled automations are kept but never fire.
created_at: StringRFC 3339 creation time. Doubles as the scheduling anchor before the first fire, so a new cron automation waits for its next tick rather than firing the moment it is saved.
last_fired_at: Option<String>RFC 3339 time of the last fire, if any.
Trait 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<'de> Deserialize<'de> for Automation
impl<'de> Deserialize<'de> for Automation
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
impl Eq for Automation
Source§impl JsonSchema for Automation
impl JsonSchema for Automation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for Automation
impl PartialEq for Automation
Source§impl Serialize for Automation
impl Serialize for Automation
impl StructuralPartialEq for Automation
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