#[non_exhaustive]pub struct ResourceAccessSpec {
pub readers: Vec<String>,
pub writers: Vec<String>,
pub owners: Vec<String>,
/* private fields */
}Expand description
ResourceAccessSpec holds the access control configuration to be enforced on the resources, for example, Cloud Storage bucket, BigQuery dataset, BigQuery table.
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.readers: Vec<String>Optional. The format of strings follows the pattern followed by IAM in the bindings. user:{email}, serviceAccount:{email} group:{email}. The set of principals to be granted reader role on the resource.
writers: Vec<String>Optional. The set of principals to be granted writer role on the resource.
owners: Vec<String>Optional. The set of principals to be granted owner role on the resource.
Implementations§
Source§impl ResourceAccessSpec
impl ResourceAccessSpec
pub fn new() -> Self
Sourcepub fn set_readers<T, V>(self, v: T) -> Self
pub fn set_readers<T, V>(self, v: T) -> Self
Sets the value of readers.
Sourcepub fn set_writers<T, V>(self, v: T) -> Self
pub fn set_writers<T, V>(self, v: T) -> Self
Sets the value of writers.
Sourcepub fn set_owners<T, V>(self, v: T) -> Self
pub fn set_owners<T, V>(self, v: T) -> Self
Sets the value of owners.
Trait Implementations§
Source§impl Clone for ResourceAccessSpec
impl Clone for ResourceAccessSpec
Source§fn clone(&self) -> ResourceAccessSpec
fn clone(&self) -> ResourceAccessSpec
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 ResourceAccessSpec
impl Debug for ResourceAccessSpec
Source§impl Default for ResourceAccessSpec
impl Default for ResourceAccessSpec
Source§fn default() -> ResourceAccessSpec
fn default() -> ResourceAccessSpec
Returns the “default value” for a type. Read more
Source§impl Message for ResourceAccessSpec
impl Message for ResourceAccessSpec
Source§impl PartialEq for ResourceAccessSpec
impl PartialEq for ResourceAccessSpec
impl StructuralPartialEq for ResourceAccessSpec
Auto Trait Implementations§
impl Freeze for ResourceAccessSpec
impl RefUnwindSafe for ResourceAccessSpec
impl Send for ResourceAccessSpec
impl Sync for ResourceAccessSpec
impl Unpin for ResourceAccessSpec
impl UnwindSafe for ResourceAccessSpec
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