#[non_exhaustive]pub struct ValidateAttestationOccurrenceRequest {
pub attestor: String,
pub attestation: Option<AttestationOccurrence>,
pub occurrence_note: String,
pub occurrence_resource_uri: String,
/* private fields */
}
Expand description
Request message for ValidationHelperV1.ValidateAttestationOccurrence.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attestor: String
Required. The resource name of the Attestor of the
[occurrence][grafeas.v1.Occurrence], in the format
projects/*/attestors/*
.
attestation: Option<AttestationOccurrence>
Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.
occurrence_note: String
Required. The resource name of the [Note][grafeas.v1.Note] to which the containing [Occurrence][grafeas.v1.Occurrence] is associated.
occurrence_resource_uri: String
Required. The URI of the artifact (e.g. container image) that is the subject of the containing [Occurrence][grafeas.v1.Occurrence].
Implementations§
Source§impl ValidateAttestationOccurrenceRequest
impl ValidateAttestationOccurrenceRequest
pub fn new() -> Self
Sourcepub fn set_attestor<T: Into<String>>(self, v: T) -> Self
pub fn set_attestor<T: Into<String>>(self, v: T) -> Self
Sets the value of attestor.
Sourcepub fn set_attestation<T>(self, v: T) -> Selfwhere
T: Into<AttestationOccurrence>,
pub fn set_attestation<T>(self, v: T) -> Selfwhere
T: Into<AttestationOccurrence>,
Sets the value of attestation.
Sourcepub fn set_or_clear_attestation<T>(self, v: Option<T>) -> Selfwhere
T: Into<AttestationOccurrence>,
pub fn set_or_clear_attestation<T>(self, v: Option<T>) -> Selfwhere
T: Into<AttestationOccurrence>,
Sets or clears the value of attestation.
Sourcepub fn set_occurrence_note<T: Into<String>>(self, v: T) -> Self
pub fn set_occurrence_note<T: Into<String>>(self, v: T) -> Self
Sets the value of occurrence_note.
Sourcepub fn set_occurrence_resource_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_occurrence_resource_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of occurrence_resource_uri.
Trait Implementations§
Source§impl Clone for ValidateAttestationOccurrenceRequest
impl Clone for ValidateAttestationOccurrenceRequest
Source§fn clone(&self) -> ValidateAttestationOccurrenceRequest
fn clone(&self) -> ValidateAttestationOccurrenceRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for ValidateAttestationOccurrenceRequest
impl Default for ValidateAttestationOccurrenceRequest
Source§fn default() -> ValidateAttestationOccurrenceRequest
fn default() -> ValidateAttestationOccurrenceRequest
Source§impl PartialEq for ValidateAttestationOccurrenceRequest
impl PartialEq for ValidateAttestationOccurrenceRequest
Source§fn eq(&self, other: &ValidateAttestationOccurrenceRequest) -> bool
fn eq(&self, other: &ValidateAttestationOccurrenceRequest) -> bool
self
and other
values to be equal, and is used by ==
.