pub struct WorkflowRevision {
pub definition_id: String,
pub revision: u64,
pub content_digest: String,
pub kernel_abi_version: String,
pub dependency_set_digest: String,
pub expression_versions: BTreeMap<String, String>,
pub capabilities: Vec<CapabilityPin>,
pub template_provenance: Value,
pub spec: Spec,
}Expand description
Immutable, digest-locked revision of a workflow spec with its pinned capabilities.
Fields§
§definition_id: StringWorkflow definition this record belongs to.
revision: u64Monotonic revision number.
content_digest: StringContent hash that makes the referenced artifact immutable.
kernel_abi_version: StringKernel ABI the revision was validated against.
dependency_set_digest: StringDigest over the pinned capabilities.
expression_versions: BTreeMap<String, String>Versions of generic expressions used by the spec.
capabilities: Vec<CapabilityPin>Capabilities the spec may dispatch.
template_provenance: ValueWhere the spec came from (template, draft command, author).
spec: SpecThe validated spec.
Implementations§
Source§impl WorkflowRevision
impl WorkflowRevision
Sourcepub fn validate(&self) -> Result<(), ContractError>
pub fn validate(&self) -> Result<(), ContractError>
Check this contract’s invariants; returns the first violation.
Trait Implementations§
Source§impl Clone for WorkflowRevision
impl Clone for WorkflowRevision
Source§fn clone(&self) -> WorkflowRevision
fn clone(&self) -> WorkflowRevision
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 WorkflowRevision
impl Debug for WorkflowRevision
Source§impl<'de> Deserialize<'de> for WorkflowRevision
impl<'de> Deserialize<'de> for WorkflowRevision
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
Auto Trait Implementations§
impl Freeze for WorkflowRevision
impl RefUnwindSafe for WorkflowRevision
impl Send for WorkflowRevision
impl Sync for WorkflowRevision
impl Unpin for WorkflowRevision
impl UnsafeUnpin for WorkflowRevision
impl UnwindSafe for WorkflowRevision
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