pub struct PromptConfig {
pub prompt_line: String,
pub history_size: usize,
pub translate: bool,
pub break_enabled: bool,
pub break_str: String,
pub min_duration: usize,
pub rc_ok: String,
pub rc_err: String,
pub git_branch: String,
pub git_commit_ref: usize,
pub git_commit_prepend: Option<String>,
pub git_commit_append: Option<String>,
}
Fields§
§prompt_line: String
§history_size: usize
§translate: bool
§break_enabled: bool
§break_str: String
§min_duration: usize
§rc_ok: String
§rc_err: String
§git_branch: String
§git_commit_ref: usize
§git_commit_prepend: Option<String>
§git_commit_append: Option<String>
Implementations§
Source§impl PromptConfig
impl PromptConfig
Sourcepub fn default() -> PromptConfig
pub fn default() -> PromptConfig
§default
Instantiate a default PromptConfig struct
Sourcepub fn parse_config(
prompt_config_yaml: &Yaml,
) -> Result<PromptConfig, ConfigError>
pub fn parse_config( prompt_config_yaml: &Yaml, ) -> Result<PromptConfig, ConfigError>
§parse_config
Parse a PromptConfig from YAML configuration file
Trait Implementations§
Source§impl Clone for PromptConfig
impl Clone for PromptConfig
Source§fn clone(&self) -> PromptConfig
fn clone(&self) -> PromptConfig
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for PromptConfig
impl RefUnwindSafe for PromptConfig
impl Send for PromptConfig
impl Sync for PromptConfig
impl Unpin for PromptConfig
impl UnwindSafe for PromptConfig
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