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