#[non_exhaustive]pub struct GlobalOrganizationSetPolicyRequest {
pub bindings: Vec<Binding>,
pub etag: Option<Bytes>,
pub policy: Option<Policy>,
/* private fields */
}Available on crate feature
firewall-policies 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 backward 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 GlobalOrganizationSetPolicyRequest
impl GlobalOrganizationSetPolicyRequest
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 GlobalOrganizationSetPolicyRequest
impl Clone for GlobalOrganizationSetPolicyRequest
Source§fn clone(&self) -> GlobalOrganizationSetPolicyRequest
fn clone(&self) -> GlobalOrganizationSetPolicyRequest
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 Default for GlobalOrganizationSetPolicyRequest
impl Default for GlobalOrganizationSetPolicyRequest
Source§fn default() -> GlobalOrganizationSetPolicyRequest
fn default() -> GlobalOrganizationSetPolicyRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for GlobalOrganizationSetPolicyRequest
impl PartialEq for GlobalOrganizationSetPolicyRequest
Source§fn eq(&self, other: &GlobalOrganizationSetPolicyRequest) -> bool
fn eq(&self, other: &GlobalOrganizationSetPolicyRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GlobalOrganizationSetPolicyRequest
Auto Trait Implementations§
impl !Freeze for GlobalOrganizationSetPolicyRequest
impl RefUnwindSafe for GlobalOrganizationSetPolicyRequest
impl Send for GlobalOrganizationSetPolicyRequest
impl Sync for GlobalOrganizationSetPolicyRequest
impl Unpin for GlobalOrganizationSetPolicyRequest
impl UnwindSafe for GlobalOrganizationSetPolicyRequest
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