pub struct Workflow {Show 17 fields
pub is_template: bool,
pub dsl_version: String,
pub name: String,
pub description: Option<String>,
pub cron: Option<String>,
pub libraries: Vec<Library>,
pub step_libraries: Vec<StepLibrary>,
pub includes: Vec<Include>,
pub strategy: Option<Strategy>,
pub quotas: Option<Quotas>,
pub storage: Vec<Storage>,
pub inputs: Vec<Input>,
pub outputs: Vec<Output>,
pub handlers: Vec<Handler>,
pub steps: Vec<Step>,
pub on_failure: Option<Vec<Step>>,
pub finally: Option<Vec<Step>>,
}Expand description
Root structure representing a parsed workflow definition.
Fields§
§is_template: boolIndicates if this workflow is a reusable template.
dsl_version: StringThe version of the Stormchaser DSL used.
name: StringThe name of the workflow.
description: Option<String>Optional description of the workflow.
cron: Option<String>Optional cron schedule for triggering the workflow.
libraries: Vec<Library>External reusable workflows or templates imported.
step_libraries: Vec<StepLibrary>Custom step definitions imported for this workflow.
includes: Vec<Include>Sub-workflows included for execution.
strategy: Option<Strategy>Execution strategy and constraints for the workflow.
quotas: Option<Quotas>Resource quotas applied to the entire workflow run.
storage: Vec<Storage>Storage configurations to provision.
inputs: Vec<Input>Expected inputs for the workflow.
outputs: Vec<Output>Outputs to be produced by the workflow.
handlers: Vec<Handler>Event handlers for system or custom events.
steps: Vec<Step>The sequential or parallel steps to execute.
on_failure: Option<Vec<Step>>Steps to execute if the main workflow fails.
finally: Option<Vec<Step>>Steps to execute regardless of success or failure.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Workflow
impl<'de> Deserialize<'de> for Workflow
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>,
Source§impl JsonSchema for Workflow
impl JsonSchema for Workflow
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Workflow
impl RefUnwindSafe for Workflow
impl Send for Workflow
impl Sync for Workflow
impl Unpin for Workflow
impl UnsafeUnpin for Workflow
impl UnwindSafe for Workflow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more