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

pub struct Conf {
Show 18 fields pub files: Vec<PathBuf>, pub default_flags: Option<String>, pub date_time_format: Option<String>, pub verbs: Vec<VerbConf>, pub skin: Option<AHashMap<String, SkinEntry>>, pub special_paths: AHashMap<Glob, SpecialHandling>, pub search_modes: Option<FnvHashMap<String, String>>, pub disable_mouse_capture: Option<bool>, pub cols_order: Option<ColsConf>, pub show_selection_mark: Option<bool>, pub ext_colors: AHashMap<String, String>, pub syntax_theme: Option<String>, pub true_colors: Option<bool>, pub icon_theme: Option<String>, pub modal: Option<bool>, pub max_panels_count: Option<usize>, pub quit_on_last_cancel: Option<bool>, pub file_sum_threads_count: Option<usize>,
}
Expand description

The configuration read from conf.toml or conf.hjson file(s)

Fields

files: Vec<PathBuf>

the files used to load this configuration

default_flags: Option<String>date_time_format: Option<String>verbs: Vec<VerbConf>skin: Option<AHashMap<String, SkinEntry>>special_paths: AHashMap<Glob, SpecialHandling>search_modes: Option<FnvHashMap<String, String>>disable_mouse_capture: Option<bool>cols_order: Option<ColsConf>show_selection_mark: Option<bool>ext_colors: AHashMap<String, String>syntax_theme: Option<String>true_colors: Option<bool>icon_theme: Option<String>modal: Option<bool>max_panels_count: Option<usize>quit_on_last_cancel: Option<bool>file_sum_threads_count: Option<usize>

Implementations

return the path to the default conf.toml file. If there’s no conf.hjson file in the default conf directory, and if there’s a toml file, return this toml file.

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

assume the file doesn’t yet exist

read the configuration from a given path. Assume it exists. Values set in the read file replace the ones of self. Errors are printed on stderr (assuming this function is called before terminal alternation).

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.