#[non_exhaustive]pub struct DeletePolicyRequest {
pub name: String,
pub etag: String,
/* private fields */
}Expand description
The request sent to the [DeletePolicy] [google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy] method.
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.name: StringRequired. Name of the policy to delete. See the policy entry for naming rules.
etag: StringOptional. The current etag of policy. If an etag is provided and does not match the current etag of the policy, deletion will be blocked and an ABORTED error will be returned.
Implementations§
Trait Implementations§
Source§impl Clone for DeletePolicyRequest
impl Clone for DeletePolicyRequest
Source§fn clone(&self) -> DeletePolicyRequest
fn clone(&self) -> DeletePolicyRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeletePolicyRequest
impl Debug for DeletePolicyRequest
Source§impl Default for DeletePolicyRequest
impl Default for DeletePolicyRequest
Source§fn default() -> DeletePolicyRequest
fn default() -> DeletePolicyRequest
Returns the “default value” for a type. Read more
Source§impl Message for DeletePolicyRequest
impl Message for DeletePolicyRequest
Source§impl PartialEq for DeletePolicyRequest
impl PartialEq for DeletePolicyRequest
Source§fn eq(&self, other: &DeletePolicyRequest) -> bool
fn eq(&self, other: &DeletePolicyRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeletePolicyRequest
Auto Trait Implementations§
impl Freeze for DeletePolicyRequest
impl RefUnwindSafe for DeletePolicyRequest
impl Send for DeletePolicyRequest
impl Sync for DeletePolicyRequest
impl Unpin for DeletePolicyRequest
impl UnsafeUnpin for DeletePolicyRequest
impl UnwindSafe for DeletePolicyRequest
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