pub struct CommitDeclaration {
pub reference: ArtifactRef,
pub name: Option<String>,
pub media_kind: MediaKind,
pub media_type: Option<String>,
pub lineage: ArtifactLineage,
pub retention: RetentionPolicy,
pub committed_at: DateTime<Utc>,
}Expand description
What a commit declares: everything the record and the journaled
commitment need, from whichever source the bytes arrived (an
SDK-declared output, or a journaled crate::record::PayloadRef::Artifact
the producing node opted into). Both paths build through
commit_artifact, which is what makes “both write the same record
shape and journal the same event” structural rather than
conventional.
Fields§
§reference: ArtifactRefThe content address and size of the committed bytes, as the byte store minted them.
name: Option<String>The logical name versions accumulate under, when named.
media_kind: MediaKindThe media class.
media_type: Option<String>The producer-declared media type string, when asserted.
lineage: ArtifactLineageThe producing run, effect, and journal event.
retention: RetentionPolicyThe declared retention (defaults to
RetentionPolicy::ReceiptBound at the call sites, which is why
this is not an Option).
committed_at: DateTime<Utc>When the commit happened.