pub struct ShellRiskDecision {
pub level: ShellRiskLevel,
pub reason: String,
}Expand description
Classification result: a level plus a human-readable reason suitable for logging and for surfacing to the model when a command is blocked.
Fields§
§level: ShellRiskLevel§reason: StringTrait Implementations§
Source§impl Clone for ShellRiskDecision
impl Clone for ShellRiskDecision
Source§fn clone(&self) -> ShellRiskDecision
fn clone(&self) -> ShellRiskDecision
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 ShellRiskDecision
impl Debug for ShellRiskDecision
impl Eq for ShellRiskDecision
Source§impl PartialEq for ShellRiskDecision
impl PartialEq for ShellRiskDecision
Source§fn eq(&self, other: &ShellRiskDecision) -> bool
fn eq(&self, other: &ShellRiskDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShellRiskDecision
Auto Trait Implementations§
impl Freeze for ShellRiskDecision
impl RefUnwindSafe for ShellRiskDecision
impl Send for ShellRiskDecision
impl Sync for ShellRiskDecision
impl Unpin for ShellRiskDecision
impl UnsafeUnpin for ShellRiskDecision
impl UnwindSafe for ShellRiskDecision
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