pub struct WorkflowDefinition {
pub protocol: String,
pub owner: String,
pub name: String,
pub version: String,
pub input_contract: WorkflowDataContract,
pub result_contract: WorkflowDataContract,
pub steps: Vec<WorkflowStepDeclaration>,
}Fields§
§protocol: StringVersioned declaration protocol, currently lenso.workflow-definition.v1.
owner: StringStable Module identity that owns the workflow behavior.
name: StringStable workflow name within the owning Module.
version: StringDefinition version pinned by every started instance.
input_contract: WorkflowDataContract§result_contract: WorkflowDataContract§steps: Vec<WorkflowStepDeclaration>Ordered step metadata. Position in this vector is contract-significant.
Implementations§
Source§impl WorkflowDefinition
impl WorkflowDefinition
pub fn new( owner: impl Into<String>, name: impl Into<String>, version: impl Into<String>, input_contract: WorkflowDataContract, result_contract: WorkflowDataContract, steps: Vec<WorkflowStepDeclaration>, ) -> Self
Trait Implementations§
Source§impl Clone for WorkflowDefinition
impl Clone for WorkflowDefinition
Source§fn clone(&self) -> WorkflowDefinition
fn clone(&self) -> WorkflowDefinition
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 ComposeSchema for WorkflowDefinition
impl ComposeSchema for WorkflowDefinition
Source§impl Debug for WorkflowDefinition
impl Debug for WorkflowDefinition
Source§impl<'de> Deserialize<'de> for WorkflowDefinition
impl<'de> Deserialize<'de> for WorkflowDefinition
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 WorkflowDefinition
Source§impl From<&WorkflowDefinition> for WorkflowDefinitionReference
impl From<&WorkflowDefinition> for WorkflowDefinitionReference
Source§fn from(definition: &WorkflowDefinition) -> Self
fn from(definition: &WorkflowDefinition) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WorkflowDefinition
impl PartialEq for WorkflowDefinition
Source§impl Serialize for WorkflowDefinition
impl Serialize for WorkflowDefinition
impl StructuralPartialEq for WorkflowDefinition
Auto Trait Implementations§
impl Freeze for WorkflowDefinition
impl RefUnwindSafe for WorkflowDefinition
impl Send for WorkflowDefinition
impl Sync for WorkflowDefinition
impl Unpin for WorkflowDefinition
impl UnsafeUnpin for WorkflowDefinition
impl UnwindSafe for WorkflowDefinition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.