#[non_exhaustive]pub struct Attestor {
pub name: String,
pub description: String,
pub update_time: Option<Timestamp>,
pub attestor_type: Option<AttestorType>,
}
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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets 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
.
Sourcepub fn get_user_owned_grafeas_note(&self) -> Option<&Box<UserOwnedGrafeasNote>>
pub fn get_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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attestor
impl<'de> Deserialize<'de> for Attestor
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for Attestor
impl Message for Attestor
impl StructuralPartialEq for Attestor
Auto Trait Implementations§
impl Freeze for Attestor
impl RefUnwindSafe for Attestor
impl Send for Attestor
impl Sync for Attestor
impl Unpin for Attestor
impl UnwindSafe for Attestor
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
Mutably borrows from an owned value. Read more