#[non_exhaustive]pub enum PolicyEnforcementStatus {
Enforced,
Advisory,
Unsupported,
NotRequested,
Unknown,
}Expand description
Structured enforcement status for a policy dimension.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Enforced
The requested policy was technically enforced by the executor backend.
Advisory
The executor ran without technical enforcement and reported the downgrade.
Unsupported
The executor does not support this policy dimension.
NotRequested
This policy dimension was not requested for the command.
Unknown
The executor could not determine whether enforcement happened.
Implementations§
Source§impl PolicyEnforcementStatus
impl PolicyEnforcementStatus
Sourcepub fn is_enforced(self) -> bool
pub fn is_enforced(self) -> bool
Returns true when the status is PolicyEnforcementStatus::Enforced.
Sourcepub fn is_advisory(self) -> bool
pub fn is_advisory(self) -> bool
Returns true when the status is PolicyEnforcementStatus::Advisory.
Trait Implementations§
Source§impl Clone for PolicyEnforcementStatus
impl Clone for PolicyEnforcementStatus
Source§fn clone(&self) -> PolicyEnforcementStatus
fn clone(&self) -> PolicyEnforcementStatus
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 moreimpl Copy for PolicyEnforcementStatus
Source§impl Debug for PolicyEnforcementStatus
impl Debug for PolicyEnforcementStatus
Source§impl<'de> Deserialize<'de> for PolicyEnforcementStatus
impl<'de> Deserialize<'de> for PolicyEnforcementStatus
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
impl Eq for PolicyEnforcementStatus
Source§impl PartialEq for PolicyEnforcementStatus
impl PartialEq for PolicyEnforcementStatus
Source§impl Serialize for PolicyEnforcementStatus
impl Serialize for PolicyEnforcementStatus
impl StructuralPartialEq for PolicyEnforcementStatus
Auto Trait Implementations§
impl Freeze for PolicyEnforcementStatus
impl RefUnwindSafe for PolicyEnforcementStatus
impl Send for PolicyEnforcementStatus
impl Sync for PolicyEnforcementStatus
impl Unpin for PolicyEnforcementStatus
impl UnsafeUnpin for PolicyEnforcementStatus
impl UnwindSafe for PolicyEnforcementStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.