#[non_exhaustive]pub struct AddAclEntryRequest {
pub acl: String,
pub acl_entry: Option<AclEntry>,
/* private fields */
}Expand description
Request for AddAclEntry.
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.acl: StringRequired. The name of the acl to add the acl entry to.
Structured like:
projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}.
The structure of acl_id defines the Resource Pattern (resource_type,
resource_name, pattern_type) of the acl. See Acl.name for
details.
acl_entry: Option<AclEntry>Required. The acl entry to add.
Implementations§
Source§impl AddAclEntryRequest
impl AddAclEntryRequest
pub fn new() -> Self
Sourcepub fn set_acl_entry<T>(self, v: T) -> Self
pub fn set_acl_entry<T>(self, v: T) -> Self
Sets the value of acl_entry.
Trait Implementations§
Source§impl Clone for AddAclEntryRequest
impl Clone for AddAclEntryRequest
Source§fn clone(&self) -> AddAclEntryRequest
fn clone(&self) -> AddAclEntryRequest
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 AddAclEntryRequest
impl Debug for AddAclEntryRequest
Source§impl Default for AddAclEntryRequest
impl Default for AddAclEntryRequest
Source§fn default() -> AddAclEntryRequest
fn default() -> AddAclEntryRequest
Returns the “default value” for a type. Read more
Source§impl Message for AddAclEntryRequest
impl Message for AddAclEntryRequest
Source§impl PartialEq for AddAclEntryRequest
impl PartialEq for AddAclEntryRequest
impl StructuralPartialEq for AddAclEntryRequest
Auto Trait Implementations§
impl Freeze for AddAclEntryRequest
impl RefUnwindSafe for AddAclEntryRequest
impl Send for AddAclEntryRequest
impl Sync for AddAclEntryRequest
impl Unpin for AddAclEntryRequest
impl UnwindSafe for AddAclEntryRequest
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