pub enum SettingSource {
User,
Project,
Local,
}Expand description
Filesystem setting sources Claude Code loads at startup.
Maps to the --setting-sources CLI flag. When omitted, the Claude CLI
loads all three (user, project, local) and fires their hooks.
Pass Some(vec![]) to skip all of them — useful when embedding the CLI
in another app that doesn’t want global SessionStart hooks running.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SettingSource
impl Clone for SettingSource
Source§fn clone(&self) -> SettingSource
fn clone(&self) -> SettingSource
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 SettingSource
Source§impl Debug for SettingSource
impl Debug for SettingSource
Source§impl<'de> Deserialize<'de> for SettingSource
impl<'de> Deserialize<'de> for SettingSource
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
impl Eq for SettingSource
Source§impl PartialEq for SettingSource
impl PartialEq for SettingSource
Source§impl Serialize for SettingSource
impl Serialize for SettingSource
impl StructuralPartialEq for SettingSource
Auto Trait Implementations§
impl Freeze for SettingSource
impl RefUnwindSafe for SettingSource
impl Send for SettingSource
impl Sync for SettingSource
impl Unpin for SettingSource
impl UnsafeUnpin for SettingSource
impl UnwindSafe for SettingSource
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