pub struct AutomationRun {
pub automation_id: String,
pub fired_at: String,
pub source: RunSource,
pub agent_id: Option<String>,
pub error: Option<String>,
}Expand description
One recorded firing of an automation, successful or not.
Fields§
§automation_id: StringThe automation that fired.
fired_at: StringRFC 3339 time of the firing.
source: RunSourceWhat caused it.
agent_id: Option<String>The agent it spawned, absent if the spawn failed.
error: Option<String>Why it failed, absent on success. A run is recorded either way — an automation that silently stops working is the failure mode run history exists to prevent.
Trait Implementations§
Source§impl Clone for AutomationRun
impl Clone for AutomationRun
Source§fn clone(&self) -> AutomationRun
fn clone(&self) -> AutomationRun
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 AutomationRun
impl Debug for AutomationRun
Source§impl<'de> Deserialize<'de> for AutomationRun
impl<'de> Deserialize<'de> for AutomationRun
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 AutomationRun
Source§impl JsonSchema for AutomationRun
impl JsonSchema for AutomationRun
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 AutomationRun
impl PartialEq for AutomationRun
Source§impl Serialize for AutomationRun
impl Serialize for AutomationRun
impl StructuralPartialEq for AutomationRun
Auto Trait Implementations§
impl Freeze for AutomationRun
impl RefUnwindSafe for AutomationRun
impl Send for AutomationRun
impl Sync for AutomationRun
impl Unpin for AutomationRun
impl UnsafeUnpin for AutomationRun
impl UnwindSafe for AutomationRun
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