#[non_exhaustive]pub struct AddGranteesRequest {
pub data_policy: String,
pub grantees: Vec<String>,
/* private fields */
}Expand description
Request message for the AddGrantees method.
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.data_policy: StringRequired. Resource name of this data policy, in the format of
projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.
grantees: Vec<String>Required. IAM principal that should be granted Fine Grained Access to the
underlying data goverened by the data policy. The target data policy is
determined by the data_policy field.
Uses the IAM V2 principal syntax. Supported principal types:
- User
- Group
- Service account
Implementations§
Source§impl AddGranteesRequest
impl AddGranteesRequest
pub fn new() -> Self
Sourcepub fn set_data_policy<T: Into<String>>(self, v: T) -> Self
pub fn set_data_policy<T: Into<String>>(self, v: T) -> Self
Sets the value of data_policy.
Sourcepub fn set_grantees<T, V>(self, v: T) -> Self
pub fn set_grantees<T, V>(self, v: T) -> Self
Sets the value of grantees.
Trait Implementations§
Source§impl Clone for AddGranteesRequest
impl Clone for AddGranteesRequest
Source§fn clone(&self) -> AddGranteesRequest
fn clone(&self) -> AddGranteesRequest
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 AddGranteesRequest
impl Debug for AddGranteesRequest
Source§impl Default for AddGranteesRequest
impl Default for AddGranteesRequest
Source§fn default() -> AddGranteesRequest
fn default() -> AddGranteesRequest
Returns the “default value” for a type. Read more
Source§impl Message for AddGranteesRequest
impl Message for AddGranteesRequest
Source§impl PartialEq for AddGranteesRequest
impl PartialEq for AddGranteesRequest
impl StructuralPartialEq for AddGranteesRequest
Auto Trait Implementations§
impl Freeze for AddGranteesRequest
impl RefUnwindSafe for AddGranteesRequest
impl Send for AddGranteesRequest
impl Sync for AddGranteesRequest
impl Unpin for AddGranteesRequest
impl UnwindSafe for AddGranteesRequest
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