#[non_exhaustive]pub struct SetIamPolicyRequest {
pub resource: String,
pub policy: Option<Policy>,
pub update_mask: Option<FieldMask>,
}Expand description
Request message for SetIamPolicy 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.resource: StringREQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
policy: Option<Policy>REQUIRED: The complete policy to be applied to the resource. The size of
the policy is limited to a few 10s of KB. An empty policy is a
valid policy but certain Cloud Platform services (such as Projects)
might reject them.
update_mask: Option<FieldMask>OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used:
paths: "bindings, etag"
Implementations§
Source§impl SetIamPolicyRequest
impl SetIamPolicyRequest
Sourcepub fn set_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_resource<T: Into<String>>(self, v: T) -> Self
Sets the value of resource.
Sourcepub fn set_update_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
pub fn set_update_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
Sets the value of update_mask.
Trait Implementations§
Source§impl Clone for SetIamPolicyRequest
impl Clone for SetIamPolicyRequest
Source§fn clone(&self) -> SetIamPolicyRequest
fn clone(&self) -> SetIamPolicyRequest
Returns a copy 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 SetIamPolicyRequest
impl Debug for SetIamPolicyRequest
Source§impl Default for SetIamPolicyRequest
impl Default for SetIamPolicyRequest
Source§fn default() -> SetIamPolicyRequest
fn default() -> SetIamPolicyRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetIamPolicyRequestwhere
SetIamPolicyRequest: Default,
impl<'de> Deserialize<'de> for SetIamPolicyRequestwhere
SetIamPolicyRequest: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for SetIamPolicyRequest
impl Message for SetIamPolicyRequest
Source§impl PartialEq for SetIamPolicyRequest
impl PartialEq for SetIamPolicyRequest
Source§impl Serialize for SetIamPolicyRequest
impl Serialize for SetIamPolicyRequest
impl StructuralPartialEq for SetIamPolicyRequest
Auto Trait Implementations§
impl !Freeze for SetIamPolicyRequest
impl RefUnwindSafe for SetIamPolicyRequest
impl Send for SetIamPolicyRequest
impl Sync for SetIamPolicyRequest
impl Unpin for SetIamPolicyRequest
impl UnwindSafe for SetIamPolicyRequest
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