pub struct LitConfig {
pub core: CoreConfig,
pub agent: AgentConfig,
pub merge: MergeConfig,
pub security: SecurityConfig,
pub performance: PerformanceConfig,
pub lfs: LfsConfig,
}Expand description
Unified configuration with repo-local, user-global, and system hierarchy. Priority: CLI args > env vars > repo-local > user-global > defaults
Fields§
§core: CoreConfig§agent: AgentConfig§merge: MergeConfig§security: SecurityConfig§performance: PerformanceConfig§lfs: LfsConfigImplementations§
Source§impl LitConfig
impl LitConfig
Sourcepub fn load(repo_path: Option<&Path>) -> Self
pub fn load(repo_path: Option<&Path>) -> Self
Load configuration with full hierarchy: repo-local .lit/config.toml > user ~/.litconfig.toml > defaults
Sourcepub fn save_global(&self) -> Result<(), String>
pub fn save_global(&self) -> Result<(), String>
Save user-global configuration
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LitConfig
impl<'de> Deserialize<'de> for LitConfig
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
Auto Trait Implementations§
impl Freeze for LitConfig
impl RefUnwindSafe for LitConfig
impl Send for LitConfig
impl Sync for LitConfig
impl Unpin for LitConfig
impl UnsafeUnpin for LitConfig
impl UnwindSafe for LitConfig
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