#[non_exhaustive]pub struct Attestor {
pub name: String,
pub description: String,
pub update_time: Option<Timestamp>,
pub attestor_type: Option<AttestorType>,
/* private fields */
}
Expand description
An attestor that attests to container image artifacts. An existing attestor cannot be modified except where indicated.
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.name: String
Required. The resource name, in the format:
projects/*/attestors/*
. This field may not be updated.
description: String
Optional. A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs.
update_time: Option<Timestamp>
Output only. Time when the attestor was last updated.
attestor_type: Option<AttestorType>
Implementations§
Source§impl Attestor
impl Attestor
pub fn new() -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_attestor_type<T: Into<Option<AttestorType>>>(self, v: T) -> Self
pub fn set_attestor_type<T: Into<Option<AttestorType>>>(self, v: T) -> Self
Sets the value of attestor_type.
Note that all the setters affecting attestor_type
are mutually
exclusive.
Sourcepub fn user_owned_grafeas_note(&self) -> Option<&Box<UserOwnedGrafeasNote>>
pub fn user_owned_grafeas_note(&self) -> Option<&Box<UserOwnedGrafeasNote>>
The value of attestor_type
if it holds a UserOwnedGrafeasNote
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_user_owned_grafeas_note<T: Into<Box<UserOwnedGrafeasNote>>>(
self,
v: T,
) -> Self
pub fn set_user_owned_grafeas_note<T: Into<Box<UserOwnedGrafeasNote>>>( self, v: T, ) -> Self
Sets the value of attestor_type
to hold a UserOwnedGrafeasNote
.
Note that all the setters affecting attestor_type
are
mutually exclusive.