pub struct Config {
pub language: String,
pub shell_config: ShellConfig,
pub alias: HashMap<String, String>,
pub output_config: OutputConfig,
pub prompt_config: PromptConfig,
}
Fields§
§language: String
§shell_config: ShellConfig
§alias: HashMap<String, String>
§output_config: OutputConfig
§prompt_config: PromptConfig
Implementations§
Source§impl Config
impl Config
Sourcepub fn parse_config(config_file: PathBuf) -> Result<Config, ConfigError>
pub fn parse_config(config_file: PathBuf) -> Result<Config, ConfigError>
§parse_config
parse_config
parse a YAML configuration file and return a Config struct
Trait Implementations§
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