pub struct WorkflowDsl { /* private fields */ }Expand description
Lossless representation of an imported A3S workflow DSL document.
Implementations§
Source§impl WorkflowDsl
impl WorkflowDsl
Sourcepub fn from_yaml(source: &str) -> Result<Self, WorkflowDslError>
pub fn from_yaml(source: &str) -> Result<Self, WorkflowDslError>
Parses and validates a workflow DSL document from YAML.
Sourcepub fn from_json(source: &str) -> Result<Self, WorkflowDslError>
pub fn from_json(source: &str) -> Result<Self, WorkflowDslError>
Parses and validates a workflow DSL document from JSON.
Sourcepub fn to_yaml(&self) -> Result<String, WorkflowDslError>
pub fn to_yaml(&self) -> Result<String, WorkflowDslError>
Serializes the complete document, including extensions, as YAML.
Sourcepub fn to_json(&self) -> Result<String, WorkflowDslError>
pub fn to_json(&self) -> Result<String, WorkflowDslError>
Serializes the complete document, including extensions, as JSON.
Sourcepub fn app(&self) -> &WorkflowDslApp
pub fn app(&self) -> &WorkflowDslApp
Returns application identity and mode metadata.
Sourcepub fn dependencies(&self) -> &[Value]
pub fn dependencies(&self) -> &[Value]
Returns dependency declarations preserved from the source document.
Sourcepub fn workflow(&self) -> &WorkflowDslBody
pub fn workflow(&self) -> &WorkflowDslBody
Returns the workflow body.
Sourcepub fn graph(&self) -> &WorkflowDag
pub fn graph(&self) -> &WorkflowDag
Returns the workflow DAG contained in the body.
Sourcepub fn extensions(&self) -> &BTreeMap<String, Value>
pub fn extensions(&self) -> &BTreeMap<String, Value>
Returns unknown top-level fields preserved during round trips.
Sourcepub fn execution_digest(&self) -> Result<String, WorkflowDslError>
pub fn execution_digest(&self) -> Result<String, WorkflowDslError>
Computes a stable digest of executable document semantics.
Sourcepub fn compatibility(
&self,
) -> Result<WorkflowDslCompatibility, WorkflowDslError>
pub fn compatibility( &self, ) -> Result<WorkflowDslCompatibility, WorkflowDslError>
Classify the imported DSL version. Newer releases and a different major need explicit confirmation, while an older minor remains importable with warnings.
Trait Implementations§
Source§impl Clone for WorkflowDsl
impl Clone for WorkflowDsl
Source§fn clone(&self) -> WorkflowDsl
fn clone(&self) -> WorkflowDsl
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more