#[non_exhaustive]pub struct DataAccessSpec {
pub readers: Vec<String>,
/* private fields */
}Expand description
DataAccessSpec holds the access control configuration to be enforced on data stored within resources (eg: rows, columns in BigQuery Tables). When associated with data, the data is only accessible to principals explicitly granted access through the DataAccessSpec. Principals with access to the containing resource are not implicitly granted access.
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 data stored within resources.
Implementations§
Source§impl DataAccessSpec
impl DataAccessSpec
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.
Trait Implementations§
Source§impl Clone for DataAccessSpec
impl Clone for DataAccessSpec
Source§fn clone(&self) -> DataAccessSpec
fn clone(&self) -> DataAccessSpec
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 DataAccessSpec
impl Debug for DataAccessSpec
Source§impl Default for DataAccessSpec
impl Default for DataAccessSpec
Source§fn default() -> DataAccessSpec
fn default() -> DataAccessSpec
Returns the “default value” for a type. Read more
Source§impl Message for DataAccessSpec
impl Message for DataAccessSpec
Source§impl PartialEq for DataAccessSpec
impl PartialEq for DataAccessSpec
impl StructuralPartialEq for DataAccessSpec
Auto Trait Implementations§
impl Freeze for DataAccessSpec
impl RefUnwindSafe for DataAccessSpec
impl Send for DataAccessSpec
impl Sync for DataAccessSpec
impl Unpin for DataAccessSpec
impl UnwindSafe for DataAccessSpec
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