Struct i3status_rs::config::Config
source · pub struct Config {
pub shared: SharedConfig,
pub invert_scrolling: bool,
pub double_click_delay: u64,
pub error_format: Config,
pub error_fullscreen_format: Config,
pub blocks: Vec<BlockConfigEntry>,
}Fields§
§invert_scrolling: boolSet to true to invert mouse wheel direction
double_click_delay: u64The maximum delay (ms) between two clicks that are considered as double click
error_format: Config§error_fullscreen_format: Config§blocks: Vec<BlockConfigEntry>Trait Implementations§
source§impl Default for Config
impl Default for Config
source§fn default() -> Self
fn default() -> Self
Return Config { shared: Default::default(), invert_scrolling: Default::default(), double_click_delay: Default::default(), error_format: " {$short_error_message|X} ".parse().unwrap(), error_fullscreen_format: " $full_error_message ".parse().unwrap(), blocks: Default::default() }
source§impl<'de> Deserialize<'de> for Configwhere
Config: Default,
impl<'de> Deserialize<'de> for Configwhere Config: Default,
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 !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.