[][src]Struct broot::conf::Conf

pub struct Conf {
    pub default_flags: String,
    pub date_time_format: Option<String>,
    pub verbs: Vec<Verb>,
    pub skin: HashMap<String, SkinEntry>,
    pub special_paths: Vec<SpecialPath>,
    pub search_modes: SearchModeMap,
    pub disable_mouse_capture: bool,
    pub cols_order: Option<Cols>,
    pub show_selection_mark: Option<bool>,
    pub ext_colors: ExtColorMap,
    pub syntax_theme: Option<String>,
    pub true_colors: Option<bool>,
    pub icon_theme: Option<String>,
}

The configuration read from conf.toml file(s)

Fields

default_flags: Stringdate_time_format: Option<String>verbs: Vec<Verb>skin: HashMap<String, SkinEntry>special_paths: Vec<SpecialPath>search_modes: SearchModeMapdisable_mouse_capture: boolcols_order: Option<Cols>show_selection_mark: Option<bool>ext_colors: ExtColorMapsyntax_theme: Option<String>true_colors: Option<bool>icon_theme: Option<String>

Implementations

impl Conf[src]

pub fn default_location() -> &'static Path[src]

pub fn from_default_location() -> Result<Conf, ConfError>[src]

read the configuration file from the default OS specific location. Create it if it doesn't exist

pub fn write_sample(filepath: &Path) -> Result<(), Error>[src]

assume the file doesn't yet exist

pub fn read_file(&mut self, filepath: &Path) -> Result<(), ConfError>[src]

read the configuration from a given path. Assume it exists. stderr is supposed to be a valid solution for displaying errors (i.e. this function is called before or after the terminal alternation)

Trait Implementations

impl Default for Conf[src]

Auto Trait Implementations

impl !RefUnwindSafe for Conf

impl Send for Conf

impl Sync for Conf

impl Unpin for Conf

impl UnwindSafe for Conf

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, 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>,