#[non_exhaustive]pub struct RemoveGranteesRequest {
pub data_policy: String,
pub grantees: Vec<String>,
/* private fields */
}Expand description
Request message for the RemoveGrantees 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 revoked from 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 RemoveGranteesRequest
impl RemoveGranteesRequest
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 RemoveGranteesRequest
impl Clone for RemoveGranteesRequest
Source§fn clone(&self) -> RemoveGranteesRequest
fn clone(&self) -> RemoveGranteesRequest
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 RemoveGranteesRequest
impl Debug for RemoveGranteesRequest
Source§impl Default for RemoveGranteesRequest
impl Default for RemoveGranteesRequest
Source§fn default() -> RemoveGranteesRequest
fn default() -> RemoveGranteesRequest
Returns the “default value” for a type. Read more
Source§impl Message for RemoveGranteesRequest
impl Message for RemoveGranteesRequest
Source§impl PartialEq for RemoveGranteesRequest
impl PartialEq for RemoveGranteesRequest
impl StructuralPartialEq for RemoveGranteesRequest
Auto Trait Implementations§
impl Freeze for RemoveGranteesRequest
impl RefUnwindSafe for RemoveGranteesRequest
impl Send for RemoveGranteesRequest
impl Sync for RemoveGranteesRequest
impl Unpin for RemoveGranteesRequest
impl UnwindSafe for RemoveGranteesRequest
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