#[non_exhaustive]pub struct CreateAttestorRequest {
pub parent: String,
pub attestor_id: String,
pub attestor: Option<Attestor>,
/* private fields */
}
Expand description
Request message for [BinauthzManagementService.CreateAttestor][].
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.parent: String
Required. The parent of this attestor.
attestor_id: String
Required. The attestors ID.
attestor: Option<Attestor>
Required. The initial attestor value. The service will
overwrite the attestor name field with the resource name,
in the format projects/*/attestors/*
.
Implementations§
Source§impl CreateAttestorRequest
impl CreateAttestorRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_attestor_id<T: Into<String>>(self, v: T) -> Self
pub fn set_attestor_id<T: Into<String>>(self, v: T) -> Self
Sets the value of attestor_id.
Sourcepub fn set_attestor<T>(self, v: T) -> Self
pub fn set_attestor<T>(self, v: T) -> Self
Sets the value of attestor.
Trait Implementations§
Source§impl Clone for CreateAttestorRequest
impl Clone for CreateAttestorRequest
Source§fn clone(&self) -> CreateAttestorRequest
fn clone(&self) -> CreateAttestorRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateAttestorRequest
impl Debug for CreateAttestorRequest
Source§impl Default for CreateAttestorRequest
impl Default for CreateAttestorRequest
Source§fn default() -> CreateAttestorRequest
fn default() -> CreateAttestorRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateAttestorRequest
impl Message for CreateAttestorRequest
Source§impl PartialEq for CreateAttestorRequest
impl PartialEq for CreateAttestorRequest
impl StructuralPartialEq for CreateAttestorRequest
Auto Trait Implementations§
impl Freeze for CreateAttestorRequest
impl RefUnwindSafe for CreateAttestorRequest
impl Send for CreateAttestorRequest
impl Sync for CreateAttestorRequest
impl Unpin for CreateAttestorRequest
impl UnwindSafe for CreateAttestorRequest
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