pub struct CreateAutomationBody {
pub id: String,
pub workspace: String,
pub trigger: Trigger,
pub template: SpawnTemplate,
pub enabled: bool,
}Expand description
Body for POST /api/automations.
Fields§
§id: StringOperator-chosen id.
workspace: StringTarget workspace name.
trigger: TriggerWhat fires it.
template: SpawnTemplateWhat it spawns.
enabled: boolCreate it disabled. Defaults to enabled.
Trait Implementations§
Source§impl Clone for CreateAutomationBody
impl Clone for CreateAutomationBody
Source§fn clone(&self) -> CreateAutomationBody
fn clone(&self) -> CreateAutomationBody
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 CreateAutomationBody
impl Debug for CreateAutomationBody
Source§impl<'de> Deserialize<'de> for CreateAutomationBody
impl<'de> Deserialize<'de> for CreateAutomationBody
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 CreateAutomationBody
Source§impl JsonSchema for CreateAutomationBody
impl JsonSchema for CreateAutomationBody
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 CreateAutomationBody
impl PartialEq for CreateAutomationBody
Source§impl Serialize for CreateAutomationBody
impl Serialize for CreateAutomationBody
impl StructuralPartialEq for CreateAutomationBody
Auto Trait Implementations§
impl Freeze for CreateAutomationBody
impl RefUnwindSafe for CreateAutomationBody
impl Send for CreateAutomationBody
impl Sync for CreateAutomationBody
impl Unpin for CreateAutomationBody
impl UnsafeUnpin for CreateAutomationBody
impl UnwindSafe for CreateAutomationBody
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