pub struct CodaConfig {
pub version: u32,
pub agent: AgentConfig,
pub checks: Vec<String>,
pub prompts: PromptsConfig,
pub git: GitConfig,
pub review: ReviewConfig,
}Expand description
Top-level CODA project configuration loaded from .coda/config.yml.
§Examples
use coda_core::CodaConfig;
// Create with defaults
let config = CodaConfig::default();
assert_eq!(config.version, 1);
assert_eq!(config.agent.max_retries, 3);
// Deserialize from YAML
let yaml = serde_yaml::to_string(&config).unwrap();
let loaded: CodaConfig = serde_yaml::from_str(&yaml).unwrap();
assert_eq!(loaded.version, config.version);Fields§
§version: u32Configuration schema version.
agent: AgentConfigAgent behavior configuration.
checks: Vec<String>Precommit check commands run after each phase.
prompts: PromptsConfigPrompt template configuration.
git: GitConfigGit workflow configuration.
review: ReviewConfigCode review configuration.
Trait Implementations§
Source§impl Clone for CodaConfig
impl Clone for CodaConfig
Source§fn clone(&self) -> CodaConfig
fn clone(&self) -> CodaConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodaConfig
impl Debug for CodaConfig
Source§impl Default for CodaConfig
impl Default for CodaConfig
Source§impl<'de> Deserialize<'de> for CodaConfigwhere
CodaConfig: Default,
impl<'de> Deserialize<'de> for CodaConfigwhere
CodaConfig: Default,
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 CodaConfig
impl RefUnwindSafe for CodaConfig
impl Send for CodaConfig
impl Sync for CodaConfig
impl Unpin for CodaConfig
impl UnsafeUnpin for CodaConfig
impl UnwindSafe for CodaConfig
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