pub struct PermissionsSettings {
pub default_mode: String,
}Fields§
§default_mode: StringPermission mode for new sessions. One of "bypass", "accept-edits",
"prompt". Mismatched values fall through to Settings::default()
handling (the binary surfaces a parse error at load time, then
falls back to the type-level default — "prompt").
Edit via /settings or directly via ~/.capo/agent/settings.toml.
NOT to be confused with ~/.capo/agent/permissions.toml (a
separate file holding the [bash]/[write]/[edit] allowlist —
covered by the existing Policy loader). The [permissions]
section here ONLY carries default_mode.
Trait Implementations§
Source§impl Clone for PermissionsSettings
impl Clone for PermissionsSettings
Source§fn clone(&self) -> PermissionsSettings
fn clone(&self) -> PermissionsSettings
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 PermissionsSettings
impl Debug for PermissionsSettings
Source§impl Default for PermissionsSettings
impl Default for PermissionsSettings
Source§impl<'de> Deserialize<'de> for PermissionsSettings
impl<'de> Deserialize<'de> for PermissionsSettings
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PermissionsSettings
impl PartialEq for PermissionsSettings
Source§fn eq(&self, other: &PermissionsSettings) -> bool
fn eq(&self, other: &PermissionsSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PermissionsSettings
impl Serialize for PermissionsSettings
impl StructuralPartialEq for PermissionsSettings
Auto Trait Implementations§
impl Freeze for PermissionsSettings
impl RefUnwindSafe for PermissionsSettings
impl Send for PermissionsSettings
impl Sync for PermissionsSettings
impl Unpin for PermissionsSettings
impl UnsafeUnpin for PermissionsSettings
impl UnwindSafe for PermissionsSettings
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