pub enum RiskLevel {
Safe,
Mutating,
Dangerous,
}Expand description
Risk level assigned to each tool operation.
Variants§
Safe
Read-only, no side effects (e.g., read, search, glob, ls).
Mutating
Modifies files but in a controlled way (e.g., write, edit, multi_edit, todo_write).
Dangerous
Potentially dangerous or irreversible (e.g., bash commands).
Implementations§
Trait Implementations§
Source§impl Ord for RiskLevel
impl Ord for RiskLevel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RiskLevel
impl PartialOrd for RiskLevel
impl Copy for RiskLevel
impl Eq for RiskLevel
impl StructuralPartialEq for RiskLevel
Auto Trait Implementations§
impl Freeze for RiskLevel
impl RefUnwindSafe for RiskLevel
impl Send for RiskLevel
impl Sync for RiskLevel
impl Unpin for RiskLevel
impl UnsafeUnpin for RiskLevel
impl UnwindSafe for RiskLevel
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