#[non_exhaustive]pub struct ZoneSetNestedPolicyRequest {
pub bindings: Vec<Binding>,
pub etag: Option<Bytes>,
pub policy: Option<Policy>,
/* private fields */
}Available on crate features
reservation-blocks or reservation-sub-blocks 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 ZoneSetNestedPolicyRequest
impl ZoneSetNestedPolicyRequest
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 ZoneSetNestedPolicyRequest
impl Clone for ZoneSetNestedPolicyRequest
Source§fn clone(&self) -> ZoneSetNestedPolicyRequest
fn clone(&self) -> ZoneSetNestedPolicyRequest
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 ZoneSetNestedPolicyRequest
impl Debug for ZoneSetNestedPolicyRequest
Source§impl Default for ZoneSetNestedPolicyRequest
impl Default for ZoneSetNestedPolicyRequest
Source§fn default() -> ZoneSetNestedPolicyRequest
fn default() -> ZoneSetNestedPolicyRequest
Returns the “default value” for a type. Read more
Source§impl Message for ZoneSetNestedPolicyRequest
impl Message for ZoneSetNestedPolicyRequest
impl StructuralPartialEq for ZoneSetNestedPolicyRequest
Auto Trait Implementations§
impl !Freeze for ZoneSetNestedPolicyRequest
impl RefUnwindSafe for ZoneSetNestedPolicyRequest
impl Send for ZoneSetNestedPolicyRequest
impl Sync for ZoneSetNestedPolicyRequest
impl Unpin for ZoneSetNestedPolicyRequest
impl UnwindSafe for ZoneSetNestedPolicyRequest
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