pub struct SetIamPolicyRequest {
pub resource: String,
pub policy: Policy,
}Expand description
Request message for SetIamPolicy method.
Fields§
§resource: StringREQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
policy: PolicyREQUIRED: 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.
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 SetIamPolicyRequest
impl<'de> Deserialize<'de> for SetIamPolicyRequest
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 PartialEq for SetIamPolicyRequest
impl PartialEq for SetIamPolicyRequest
source§fn eq(&self, other: &SetIamPolicyRequest) -> bool
fn eq(&self, other: &SetIamPolicyRequest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SetIamPolicyRequest
impl Serialize for SetIamPolicyRequest
impl Eq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)