pub struct Settings {
pub user: Option<Value>,
pub user_local: Option<Value>,
pub project: Option<Value>,
pub project_local: Option<Value>,
pub paths: SettingsPaths,
}Expand description
Parsed settings layers as returned by SettingsLoader::load.
Each field is the raw JSON of one layer, or None if the file
doesn’t exist. No merging is performed – precedence is a
caller-side concern.
Fields§
§user: Option<Value><user_root>/settings.json content, or None if absent.
user_local: Option<Value><user_root>/settings.local.json content, or None if absent.
project: Option<Value><project_root>/.claude/settings.json content, or None if
the project root wasn’t configured or the file doesn’t exist.
project_local: Option<Value><project_root>/.claude/settings.local.json content, or
None similarly.
paths: SettingsPathsAbsolute paths the loader checked, regardless of whether the files existed. Useful for diagnostics (“where would the project layer come from?”).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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