[][src]Struct pyc_shell::config::PromptConfig

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: Stringhistory_size: usizetranslate: boolbreak_enabled: boolbreak_str: Stringmin_duration: usizerc_ok: Stringrc_err: Stringgit_branch: Stringgit_commit_ref: usizegit_commit_prepend: Option<String>git_commit_append: Option<String>

Implementations

impl PromptConfig[src]

pub fn default() -> PromptConfig[src]

default

Instantiate a default PromptConfig struct

pub fn parse_config(
    prompt_config_yaml: &Yaml
) -> Result<PromptConfig, ConfigError>
[src]

parse_config

Parse a PromptConfig from YAML configuration file

Trait Implementations

impl Clone for PromptConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,