pub enum EvaluationReason {
PolicyAllow(String),
PolicyDeny(String),
SafetyAllow,
SafetyDeny(String),
DangerousCommand(String),
CacheHit(bool, String),
}Expand description
Detailed reason for evaluation result
Variants§
PolicyAllow(String)
Command allowed by policy rule
PolicyDeny(String)
Command denied by policy rule
SafetyAllow
Command passed safety checks
SafetyDeny(String)
Command failed safety checks
DangerousCommand(String)
Hardcoded dangerous command detected
CacheHit(bool, String)
Retrieved from cache
Trait Implementations§
Source§impl Clone for EvaluationReason
impl Clone for EvaluationReason
Source§fn clone(&self) -> EvaluationReason
fn clone(&self) -> EvaluationReason
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 moreSource§impl Debug for EvaluationReason
impl Debug for EvaluationReason
Source§impl Display for EvaluationReason
impl Display for EvaluationReason
Source§impl PartialEq for EvaluationReason
impl PartialEq for EvaluationReason
impl StructuralPartialEq for EvaluationReason
Auto Trait Implementations§
impl Freeze for EvaluationReason
impl RefUnwindSafe for EvaluationReason
impl Send for EvaluationReason
impl Sync for EvaluationReason
impl Unpin for EvaluationReason
impl UnsafeUnpin for EvaluationReason
impl UnwindSafe for EvaluationReason
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more