pub enum CgsePolicyRule {
Show 14 variants
R01,
R02,
R03,
R04,
R05,
R06,
R07,
R08,
R09,
R10,
R11,
R12,
R13,
R14,
}Variants§
Implementations§
Source§impl CgsePolicyRule
impl CgsePolicyRule
pub const ALL: [Self; 14]
pub fn from_rule_id(rule_id: &str) -> Option<Self>
pub const fn as_rule_id(self) -> &'static str
pub const fn policy_id(self) -> &'static str
pub const fn operation_family(self) -> CgseOperationFamily
pub const fn operation_name(self) -> &'static str
pub const fn hardened_allowlist(self) -> &'static [&'static str]
pub const fn fail_closed_default(self) -> &'static str
pub const fn selected_rationale_probability_0_2( self, action: DecisionAction, ) -> &'static str
Trait Implementations§
Source§impl Clone for CgsePolicyRule
impl Clone for CgsePolicyRule
Source§fn clone(&self) -> CgsePolicyRule
fn clone(&self) -> CgsePolicyRule
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 CgsePolicyRule
Source§impl Debug for CgsePolicyRule
impl Debug for CgsePolicyRule
impl Eq for CgsePolicyRule
Source§impl Hash for CgsePolicyRule
impl Hash for CgsePolicyRule
Source§impl PartialEq for CgsePolicyRule
impl PartialEq for CgsePolicyRule
Source§fn eq(&self, other: &CgsePolicyRule) -> bool
fn eq(&self, other: &CgsePolicyRule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CgsePolicyRule
Auto Trait Implementations§
impl Freeze for CgsePolicyRule
impl RefUnwindSafe for CgsePolicyRule
impl Send for CgsePolicyRule
impl Sync for CgsePolicyRule
impl Unpin for CgsePolicyRule
impl UnsafeUnpin for CgsePolicyRule
impl UnwindSafe for CgsePolicyRule
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