pub struct BuildOccurrence {
pub in_toto_slsa_provenance_v1: Option<InTotoSlsaProvenanceV1>,
pub intoto_provenance: Option<InTotoProvenance>,
pub intoto_statement: Option<InTotoStatement>,
pub provenance: Option<BuildProvenance>,
pub provenance_bytes: Option<String>,
}
Expand description
Details of a build occurrence.
This type is not used in any activity, and only used as part of another schema.
Fields§
§in_toto_slsa_provenance_v1: Option<InTotoSlsaProvenanceV1>
In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance.
intoto_provenance: Option<InTotoProvenance>
Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
intoto_statement: Option<InTotoStatement>
In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence’s envelope.
provenance: Option<BuildProvenance>
The actual provenance for the build.
provenance_bytes: Option<String>
Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, provenance_bytes
can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
Trait Implementations§
Source§impl Clone for BuildOccurrence
impl Clone for BuildOccurrence
Source§fn clone(&self) -> BuildOccurrence
fn clone(&self) -> BuildOccurrence
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BuildOccurrence
impl Debug for BuildOccurrence
Source§impl Default for BuildOccurrence
impl Default for BuildOccurrence
Source§fn default() -> BuildOccurrence
fn default() -> BuildOccurrence
Source§impl<'de> Deserialize<'de> for BuildOccurrence
impl<'de> Deserialize<'de> for BuildOccurrence
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>,
Source§impl Serialize for BuildOccurrence
impl Serialize for BuildOccurrence
impl Part for BuildOccurrence
Auto Trait Implementations§
impl Freeze for BuildOccurrence
impl RefUnwindSafe for BuildOccurrence
impl Send for BuildOccurrence
impl Sync for BuildOccurrence
impl Unpin for BuildOccurrence
impl UnwindSafe for BuildOccurrence
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