#[non_exhaustive]pub struct OrgPolicyConstraintCustom {
pub custom_constraint: Option<CustomConstraint>,
pub policy_rules: Vec<PolicyRule>,
/* private fields */
}Expand description
Message for Org Policy Custom Constraint.
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. Org Policy Custom Constraint.
policy_rules: Vec<PolicyRule>Required. Org Policyspec rules.
Implementations§
Source§impl OrgPolicyConstraintCustom
impl OrgPolicyConstraintCustom
pub fn new() -> Self
Sourcepub fn set_custom_constraint<T: Into<Option<CustomConstraint>>>(
self,
v: T,
) -> Self
pub fn set_custom_constraint<T: Into<Option<CustomConstraint>>>( self, v: T, ) -> Self
Sets the value of custom_constraint.
Sourcepub fn set_policy_rules<T, V>(self, v: T) -> Self
pub fn set_policy_rules<T, V>(self, v: T) -> Self
Sets the value of policy_rules.
Trait Implementations§
Source§impl Clone for OrgPolicyConstraintCustom
impl Clone for OrgPolicyConstraintCustom
Source§fn clone(&self) -> OrgPolicyConstraintCustom
fn clone(&self) -> OrgPolicyConstraintCustom
Returns a copy 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 OrgPolicyConstraintCustom
impl Debug for OrgPolicyConstraintCustom
Source§impl Default for OrgPolicyConstraintCustom
impl Default for OrgPolicyConstraintCustom
Source§fn default() -> OrgPolicyConstraintCustom
fn default() -> OrgPolicyConstraintCustom
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrgPolicyConstraintCustomwhere
OrgPolicyConstraintCustom: Default,
impl<'de> Deserialize<'de> for OrgPolicyConstraintCustomwhere
OrgPolicyConstraintCustom: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for OrgPolicyConstraintCustom
impl Message for OrgPolicyConstraintCustom
impl StructuralPartialEq for OrgPolicyConstraintCustom
Auto Trait Implementations§
impl Freeze for OrgPolicyConstraintCustom
impl RefUnwindSafe for OrgPolicyConstraintCustom
impl Send for OrgPolicyConstraintCustom
impl Sync for OrgPolicyConstraintCustom
impl Unpin for OrgPolicyConstraintCustom
impl UnwindSafe for OrgPolicyConstraintCustom
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