#[non_exhaustive]pub struct WorkflowRunRecord { /* private fields */ }Expand description
Immutable provenance binding minted at run-start: which workflow (id + version) ran, the content hash it pinned, and the author that launched it. Emit into a provenance chain so a run is attributable to an exact definition.
Every field is private and read-only through an accessor. run_record
is the only constructor, so the binding cannot be mutated after minting
(no field reassignment) and author is always mint-stamped, never
caller-supplied — the future REST layer will stamp it from the
authenticated identity. Serialisable for emission into a chain; not
Deserialize, so an attacker-supplied payload cannot reconstruct a
record with a forged author or hash.
Implementations§
Source§impl WorkflowRunRecord
impl WorkflowRunRecord
Sourcepub fn workflow_id(&self) -> &str
pub fn workflow_id(&self) -> &str
The workflow’s stable id.
Sourcepub fn content_hash(&self) -> &str
pub fn content_hash(&self) -> &str
Hex SHA-256 of the canonical definition (see WorkflowDef::canonical_hash).
The mint-stamped author. Always "system" in this version.
Trait Implementations§
Source§impl Clone for WorkflowRunRecord
impl Clone for WorkflowRunRecord
Source§fn clone(&self) -> WorkflowRunRecord
fn clone(&self) -> WorkflowRunRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more