#[non_exhaustive]pub struct RegionSetPolicyRequest {
pub bindings: Vec<Binding>,
pub etag: Option<Bytes>,
pub policy: Option<Policy>,
/* private fields */
}Available on crate features
network-attachments or node-templates or region-backend-services or region-disks or region-instant-snapshots or region-network-firewall-policies or resource-policies or service-attachments or subnetworks only.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.bindings: Vec<Binding>Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use ‘policy’ to specify bindings.
etag: Option<Bytes>Flatten Policy to create a backward compatible wire-format. Deprecated. Use ‘policy’ to specify the etag.
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 in general a valid policy but certain services (like Projects) might reject them.
Implementations§
Source§impl RegionSetPolicyRequest
impl RegionSetPolicyRequest
pub fn new() -> Self
Sourcepub fn set_bindings<T, V>(self, v: T) -> Self
pub fn set_bindings<T, V>(self, v: T) -> Self
Sourcepub fn set_or_clear_etag<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_etag<T>(self, v: Option<T>) -> Self
Sourcepub fn set_policy<T>(self, v: T) -> Self
pub fn set_policy<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_policy<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for RegionSetPolicyRequest
impl Clone for RegionSetPolicyRequest
Source§fn clone(&self) -> RegionSetPolicyRequest
fn clone(&self) -> RegionSetPolicyRequest
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 RegionSetPolicyRequest
impl Debug for RegionSetPolicyRequest
Source§impl Default for RegionSetPolicyRequest
impl Default for RegionSetPolicyRequest
Source§fn default() -> RegionSetPolicyRequest
fn default() -> RegionSetPolicyRequest
Returns the “default value” for a type. Read more
Source§impl Message for RegionSetPolicyRequest
impl Message for RegionSetPolicyRequest
Source§impl PartialEq for RegionSetPolicyRequest
impl PartialEq for RegionSetPolicyRequest
impl StructuralPartialEq for RegionSetPolicyRequest
Auto Trait Implementations§
impl !Freeze for RegionSetPolicyRequest
impl RefUnwindSafe for RegionSetPolicyRequest
impl Send for RegionSetPolicyRequest
impl Sync for RegionSetPolicyRequest
impl Unpin for RegionSetPolicyRequest
impl UnwindSafe for RegionSetPolicyRequest
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