pub enum SettingsLayer {
User,
UserLocal,
Project,
ProjectLocal,
}Expand description
One of the four settings layers Claude Code can read.
Ordering reflects Claude Code’s precedence (variants later in the enum take precedence over earlier ones), but this module does not apply that precedence – it just reports what’s on disk.
Variants§
User
~/.claude/settings.json – user defaults.
UserLocal
~/.claude/settings.local.json – user-private overrides.
Project
<project>/.claude/settings.json – project-shared.
ProjectLocal
<project>/.claude/settings.local.json – project-private.
Implementations§
Source§impl SettingsLayer
impl SettingsLayer
Trait Implementations§
Source§impl Clone for SettingsLayer
impl Clone for SettingsLayer
Source§fn clone(&self) -> SettingsLayer
fn clone(&self) -> SettingsLayer
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 moreimpl Copy for SettingsLayer
Source§impl Debug for SettingsLayer
impl Debug for SettingsLayer
impl Eq for SettingsLayer
Source§impl Hash for SettingsLayer
impl Hash for SettingsLayer
Source§impl PartialEq for SettingsLayer
impl PartialEq for SettingsLayer
Source§fn eq(&self, other: &SettingsLayer) -> bool
fn eq(&self, other: &SettingsLayer) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SettingsLayer
impl Serialize for SettingsLayer
impl StructuralPartialEq for SettingsLayer
Auto Trait Implementations§
impl Freeze for SettingsLayer
impl RefUnwindSafe for SettingsLayer
impl Send for SettingsLayer
impl Sync for SettingsLayer
impl Unpin for SettingsLayer
impl UnsafeUnpin for SettingsLayer
impl UnwindSafe for SettingsLayer
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