pub struct Config {
pub project: ProjectConfig,
pub defaults: DefaultsConfig,
pub providers: ProviderConfig,
pub parallel: ParallelConfig,
pub repos: Vec<RepoConfig>,
pub enterprise: EnterpriseConfig,
pub approval: ApprovalConfig,
pub validation: OutputValidationConfig,
pub site: SiteConfig,
pub lint: LintConfig,
pub watch: WatchConfig,
}Fields§
§project: ProjectConfig§defaults: DefaultsConfig§providers: ProviderConfig§parallel: ParallelConfig§repos: Vec<RepoConfig>§enterprise: EnterpriseConfig§approval: ApprovalConfig§validation: OutputValidationConfig§site: SiteConfig§lint: LintConfig§watch: WatchConfigImplementations§
Source§impl Config
impl Config
Sourcepub fn load() -> Result<Self>
pub fn load() -> Result<Self>
Load configuration with full merge semantics. Merge order (later overrides earlier):
- Global config (~/.config/chant/config.md)
- Project config (.chant/config.md)
- Project agents config (.chant/agents.md) - only for parallel.agents
pub fn load_from(path: &Path) -> Result<Self>
pub fn parse(content: &str) -> Result<Self>
Sourcepub fn load_merged() -> Result<Self>
pub fn load_merged() -> Result<Self>
Load merged configuration from global and project configs. Project config values override global config values.
Sourcepub fn load_merged_from(
global_path: Option<&Path>,
project_path: &Path,
agents_path: Option<&Path>,
) -> Result<Self>
pub fn load_merged_from( global_path: Option<&Path>, project_path: &Path, agents_path: Option<&Path>, ) -> Result<Self>
Load merged configuration from specified global, project, and agents config paths. Merge order (later overrides earlier):
- Global config
- Project config
- Agents config (only for parallel.agents section)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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