pub enum PermissionMode {
Default,
AcceptEdits,
BypassPermissions,
DontAsk,
Plan,
Auto,
}Expand description
Permission mode for --permission-mode.
Variants§
Default
Default interactive permissions.
AcceptEdits
Auto-accept file edits.
BypassPermissions
use claude_wrapper::dangerous::DangerousClient instead; direct BypassPermissions usage is a footgun and will go away in a future major release
Bypass all permission checks.
Deprecated. Reaching for this variant directly puts a
bypass-mode query one keystroke away in any code path, which
is exactly the footgun the variant enables. Use
crate::dangerous::DangerousClient instead, which gates
construction on the CLAUDE_WRAPPER_ALLOW_DANGEROUS env-var
and makes the intent obvious at the call site. The variant
itself will stay available through the current major version
so existing callers keep compiling (with a deprecation
warning).
DontAsk
Don’t ask for permissions (deny by default).
Plan
Plan mode (read-only).
Auto
Auto mode.
Trait Implementations§
Source§impl Clone for PermissionMode
impl Clone for PermissionMode
Source§fn clone(&self) -> PermissionMode
fn clone(&self) -> PermissionMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PermissionMode
impl Debug for PermissionMode
Source§impl Default for PermissionMode
impl Default for PermissionMode
Source§fn default() -> PermissionMode
fn default() -> PermissionMode
Source§impl<'de> Deserialize<'de> for PermissionMode
impl<'de> Deserialize<'de> for PermissionMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PermissionMode
impl PartialEq for PermissionMode
Source§fn eq(&self, other: &PermissionMode) -> bool
fn eq(&self, other: &PermissionMode) -> bool
self and other values to be equal, and is used by ==.