pub struct Config {
pub keys: Keys,
pub theme: String,
pub log_file: Option<String>,
pub mouse_scroll_lines: Option<usize>,
pub window_borders_ascii: bool,
}Expand description
Pseudo-schema for the configuration file format
Fields§
§keys: KeysMapping of keys to their corresponding key actions
theme: StringPath to theme file to use
log_file: Option<String>Optional path to log file
mouse_scroll_lines: Option<usize>Optionally increase the amount of lines scrolled per mouse scroll
window_borders_ascii: boolImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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