pub struct PolicyExemptionProperties {
pub policy_assignment_id: String,
pub policy_definition_reference_ids: Vec<String>,
pub exemption_category: ExemptionCategory,
pub expires_on: Option<OffsetDateTime>,
pub display_name: Option<String>,
pub description: Option<String>,
pub metadata: Option<Value>,
}
Expand description
The policy exemption properties.
Fields§
§policy_assignment_id: String
The ID of the policy assignment that is being exempted.
policy_definition_reference_ids: Vec<String>
The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition.
exemption_category: ExemptionCategory
The policy exemption category. Possible values are Waiver and Mitigated.
expires_on: Option<OffsetDateTime>
The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption.
display_name: Option<String>
The display name of the policy exemption.
description: Option<String>
The description of the policy exemption.
metadata: Option<Value>
The policy exemption metadata. Metadata is an open ended object and is typically a collection of key value pairs.
Implementations§
source§impl PolicyExemptionProperties
impl PolicyExemptionProperties
pub fn new( policy_assignment_id: String, exemption_category: ExemptionCategory ) -> Self
Trait Implementations§
source§impl Clone for PolicyExemptionProperties
impl Clone for PolicyExemptionProperties
source§fn clone(&self) -> PolicyExemptionProperties
fn clone(&self) -> PolicyExemptionProperties
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 PolicyExemptionProperties
impl Debug for PolicyExemptionProperties
source§impl<'de> Deserialize<'de> for PolicyExemptionProperties
impl<'de> Deserialize<'de> for PolicyExemptionProperties
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 PartialEq for PolicyExemptionProperties
impl PartialEq for PolicyExemptionProperties
source§fn eq(&self, other: &PolicyExemptionProperties) -> bool
fn eq(&self, other: &PolicyExemptionProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PolicyExemptionProperties
Auto Trait Implementations§
impl Freeze for PolicyExemptionProperties
impl RefUnwindSafe for PolicyExemptionProperties
impl Send for PolicyExemptionProperties
impl Sync for PolicyExemptionProperties
impl Unpin for PolicyExemptionProperties
impl UnwindSafe for PolicyExemptionProperties
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