#[non_exhaustive]pub enum Basis {
Rule(PermissionRule),
Contained,
AcceptEdits,
Bypass,
HookApproved(String),
UnattendedConfined,
HostDeclared,
Person,
}Expand description
On whose word a call runs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rule(PermissionRule)
Contained
It stays where the session works without asking.
AcceptEdits
Bypass
HookApproved(String)
A PreToolUse hook approved it, by name.
UnattendedConfined
A command nobody can be asked about, which the session’s sandbox holds.
HostDeclared
The host’s declaration of its own tool (permit: "allow").
Person
Implementations§
Trait Implementations§
impl Eq for Basis
impl StructuralPartialEq for Basis
Auto Trait Implementations§
impl Forget for Basis
impl Freeze for Basis
impl Move for Basis
impl RefUnwindSafe for Basis
impl Send for Basis
impl Sync for Basis
impl Unpin for Basis
impl UnsafeUnpin for Basis
impl UnwindSafe for Basis
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