#[non_exhaustive]pub struct UpdateCustomConstraintRequest {
pub custom_constraint: Option<CustomConstraint>,
/* private fields */
}Expand description
The request sent to the UpdateCustomConstraintRequest [google.cloud.orgpolicy.v2.OrgPolicy.UpdateCustomConstraint] 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.custom_constraint: Option<CustomConstraint>Required. CustomConstraint to update.
Implementations§
Source§impl UpdateCustomConstraintRequest
impl UpdateCustomConstraintRequest
pub fn new() -> Self
Sourcepub fn set_custom_constraint<T>(self, v: T) -> Selfwhere
T: Into<CustomConstraint>,
pub fn set_custom_constraint<T>(self, v: T) -> Selfwhere
T: Into<CustomConstraint>,
Sets the value of custom_constraint.
Sourcepub fn set_or_clear_custom_constraint<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomConstraint>,
pub fn set_or_clear_custom_constraint<T>(self, v: Option<T>) -> Selfwhere
T: Into<CustomConstraint>,
Sets or clears the value of custom_constraint.
Trait Implementations§
Source§impl Clone for UpdateCustomConstraintRequest
impl Clone for UpdateCustomConstraintRequest
Source§fn clone(&self) -> UpdateCustomConstraintRequest
fn clone(&self) -> UpdateCustomConstraintRequest
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 UpdateCustomConstraintRequest
impl Default for UpdateCustomConstraintRequest
Source§fn default() -> UpdateCustomConstraintRequest
fn default() -> UpdateCustomConstraintRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateCustomConstraintRequest
impl PartialEq for UpdateCustomConstraintRequest
Source§fn eq(&self, other: &UpdateCustomConstraintRequest) -> bool
fn eq(&self, other: &UpdateCustomConstraintRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateCustomConstraintRequest
Auto Trait Implementations§
impl Freeze for UpdateCustomConstraintRequest
impl RefUnwindSafe for UpdateCustomConstraintRequest
impl Send for UpdateCustomConstraintRequest
impl Sync for UpdateCustomConstraintRequest
impl Unpin for UpdateCustomConstraintRequest
impl UnwindSafe for UpdateCustomConstraintRequest
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