#[non_exhaustive]pub struct AccessControlEntry {
pub principals: Vec<String>,
/* private fields */
}Expand description
AccessControlEntry is used to control who can do some operation.
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.principals: Vec<String>Optional. Users who are allowed for the operation. Each entry should be a valid v1 IAM principal identifier. The format for these is documented at: https://cloud.google.com/iam/docs/principal-identifiers#v1
Implementations§
Source§impl AccessControlEntry
impl AccessControlEntry
Sourcepub fn set_principals<T, V>(self, v: T) -> Self
pub fn set_principals<T, V>(self, v: T) -> Self
Sets the value of principals.
§Example
ⓘ
let x = AccessControlEntry::new().set_principals(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for AccessControlEntry
impl Clone for AccessControlEntry
Source§fn clone(&self) -> AccessControlEntry
fn clone(&self) -> AccessControlEntry
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 AccessControlEntry
impl Debug for AccessControlEntry
Source§impl Default for AccessControlEntry
impl Default for AccessControlEntry
Source§fn default() -> AccessControlEntry
fn default() -> AccessControlEntry
Returns the “default value” for a type. Read more
Source§impl Message for AccessControlEntry
impl Message for AccessControlEntry
Source§impl PartialEq for AccessControlEntry
impl PartialEq for AccessControlEntry
impl StructuralPartialEq for AccessControlEntry
Auto Trait Implementations§
impl Freeze for AccessControlEntry
impl RefUnwindSafe for AccessControlEntry
impl Send for AccessControlEntry
impl Sync for AccessControlEntry
impl Unpin for AccessControlEntry
impl UnsafeUnpin for AccessControlEntry
impl UnwindSafe for AccessControlEntry
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