pub enum SafetyLevel {
Safe,
WorkspaceSafe,
RequiresApproval,
Dangerous,
}Expand description
Safety classification of a command
Variants§
Safe
Command is known to be safe (read-only operations)
WorkspaceSafe
Command is safe within the workspace but may modify files
RequiresApproval
Command may have system-wide effects and requires approval
Dangerous
Command is potentially dangerous and should be blocked
Trait Implementations§
Source§impl Clone for SafetyLevel
impl Clone for SafetyLevel
impl Copy for SafetyLevel
Source§impl Debug for SafetyLevel
impl Debug for SafetyLevel
impl Eq for SafetyLevel
Source§impl PartialEq for SafetyLevel
impl PartialEq for SafetyLevel
impl StructuralPartialEq for SafetyLevel
Auto Trait Implementations§
impl Freeze for SafetyLevel
impl RefUnwindSafe for SafetyLevel
impl Send for SafetyLevel
impl Sync for SafetyLevel
impl Unpin for SafetyLevel
impl UnsafeUnpin for SafetyLevel
impl UnwindSafe for SafetyLevel
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<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.