Struct google_containeranalysis1::api::BuildOccurrence
source · [−]pub struct BuildOccurrence {
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
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
sourceimpl Clone for BuildOccurrence
impl Clone for BuildOccurrence
sourcefn clone(&self) -> BuildOccurrence
fn clone(&self) -> BuildOccurrence
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BuildOccurrence
impl Debug for BuildOccurrence
sourceimpl Default for BuildOccurrence
impl Default for BuildOccurrence
sourcefn default() -> BuildOccurrence
fn default() -> BuildOccurrence
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BuildOccurrence
impl<'de> Deserialize<'de> for BuildOccurrence
sourcefn 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
sourceimpl Serialize for BuildOccurrence
impl Serialize for BuildOccurrence
impl Part for BuildOccurrence
Auto Trait Implementations
impl RefUnwindSafe for BuildOccurrence
impl Send for BuildOccurrence
impl Sync for BuildOccurrence
impl Unpin for BuildOccurrence
impl UnwindSafe for BuildOccurrence
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more