pub struct AppConfig {Show 21 fields
pub provider: String,
pub model: String,
pub api_key: String,
pub api_url: String,
pub api_headers: String,
pub locale: String,
pub one_liner: bool,
pub commit_template: String,
pub llm_system_prompt: String,
pub use_gitmoji: bool,
pub gitmoji_format: String,
pub review_commit: bool,
pub post_commit_push: String,
pub suppress_tool_output: bool,
pub warn_staged_files_enabled: bool,
pub warn_staged_files_threshold: usize,
pub confirm_new_version: bool,
pub auto_update: Option<bool>,
pub fallback_enabled: bool,
pub track_generated_commits: bool,
pub diff_exclude_globs: Vec<String>,
}Fields§
§provider: String§model: String§api_key: String§api_url: String§api_headers: String§locale: String§one_liner: bool§commit_template: String§llm_system_prompt: String§use_gitmoji: bool§gitmoji_format: String§review_commit: bool§post_commit_push: String§suppress_tool_output: bool§warn_staged_files_enabled: bool§warn_staged_files_threshold: usize§confirm_new_version: bool§auto_update: Option<bool>§fallback_enabled: bool§track_generated_commits: bool§diff_exclude_globs: Vec<String>Implementations§
Source§impl AppConfig
impl AppConfig
Sourcepub fn load() -> Result<Self>
pub fn load() -> Result<Self>
Load config with layered resolution: defaults → global TOML → local .env → env vars
Sourcepub fn save_global(&self) -> Result<()>
pub fn save_global(&self) -> Result<()>
Save to global TOML config file
Sourcepub fn save_local(&self) -> Result<()>
pub fn save_local(&self) -> Result<()>
Save to local .env file in the git repo root
Sourcepub fn fields_display(&self) -> Vec<(&'static str, &'static str, String)>
pub fn fields_display(&self) -> Vec<(&'static str, &'static str, String)>
Get all fields as (display_name, env_suffix, current_value) tuples
Sourcepub fn grouped_fields(&self) -> Vec<FieldGroup>
pub fn grouped_fields(&self) -> Vec<FieldGroup>
Field groups for the interactive config UI
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConfig
impl<'de> Deserialize<'de> for AppConfig
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 AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnsafeUnpin for AppConfig
impl UnwindSafe for AppConfig
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