pub trait ConfigOption {
// Required methods
fn env_var(&self) -> Option<&'static str>;
fn cli_flag(&self) -> Option<&'static str>;
fn cli_short(&self) -> Option<char>;
fn config_path(&self) -> &'static str;
fn help_text(&self) -> &'static str;
}Expand description
Trait for configuration options that can be set via CLI, env vars, or config file
Required Methods§
Sourcefn config_path(&self) -> &'static str
fn config_path(&self) -> &'static str
Get the config file path for this option (e.g., “server.host”)