pub struct SignedReleaseComponents {Show 13 fields
pub signer: AuthorId,
pub model_ref: ModelRef,
pub manifest: ArtifactManifest,
pub manifest_signature: SignatureEntry,
pub manifest_dsse: DsseEnvelope,
pub aibom: AiBom,
pub aibom_dsse: DsseEnvelope,
pub slsa_statement: InTotoStatement,
pub slsa_dsse: DsseEnvelope,
pub oci_primary: OciArtifactManifest,
pub oci_aibom_referrer: OciArtifactManifest,
pub oci_slsa_referrer: OciArtifactManifest,
pub log_entries: Vec<(LogEntryKind, u64)>,
}Expand description
Named-field input bag for SignedRelease::from_components.
Replaces an earlier 13-positional-argument signature: 9 of those
arguments were structurally-similar (3 × DsseEnvelope, 3 ×
OciArtifactManifest) and the compiler could not distinguish
a transposition from intent. With this struct, every field is
named at the call site and Rust catches missing or duplicated
fields at compile time.
Not marked #[non_exhaustive] — the entire point of this
struct is to be constructible via struct-literal from outside
the crate. New fields added to SignedRelease must also land
here, and external consumers must add them at every call site;
that is the intended ergonomic.
Audit-pass WARN finding (2026-04-25); landed in the same 0.2.0 breaking window as the rest of the registry-aware rollout.
Fields§
§signer: AuthorIdAuthor that sealed the release.
model_ref: ModelRefAIBOM-flavoured reference to the primary artifact.
manifest: ArtifactManifestArtifact manifest (primary + auxiliaries).
manifest_signature: SignatureEntryRFC-0022 signature over manifest.
manifest_dsse: DsseEnvelopeDSSE envelope wrapping the manifest signature.
aibom: AiBomAIBOM record.
aibom_dsse: DsseEnvelopeDSSE envelope wrapping the AIBOM.
slsa_statement: InTotoStatementin-toto Statement carrying the SLSA v1.1 provenance.
slsa_dsse: DsseEnvelopeDSSE envelope wrapping the SLSA statement.
oci_primary: OciArtifactManifestOCI Image Manifest v1.1 for the primary artifact.
oci_aibom_referrer: OciArtifactManifestOCI referrer manifest for the AIBOM DSSE envelope.
oci_slsa_referrer: OciArtifactManifestOCI referrer manifest for the SLSA DSSE envelope.
log_entries: Vec<(LogEntryKind, u64)>Transparency-log positions for the three appended entries, in seal order: manifest signature, DSSE envelope, SLSA statement.
Trait Implementations§
Source§impl Clone for SignedReleaseComponents
impl Clone for SignedReleaseComponents
Source§fn clone(&self) -> SignedReleaseComponents
fn clone(&self) -> SignedReleaseComponents
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SignedReleaseComponents
impl RefUnwindSafe for SignedReleaseComponents
impl Send for SignedReleaseComponents
impl Sync for SignedReleaseComponents
impl Unpin for SignedReleaseComponents
impl UnsafeUnpin for SignedReleaseComponents
impl UnwindSafe for SignedReleaseComponents
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more