pub struct CommonBlockConfig {
pub click: ClickHandler,
pub signal: Option<i32>,
pub icons_format: Option<String>,
pub theme_overrides: Option<ThemeOverrides>,
pub icons_overrides: Option<HashMap<String, Icon>>,
pub merge_with_next: bool,
pub error_interval: u64,
pub error_format: Config,
pub error_fullscreen_format: Config,
pub if_command: Option<String>,
}
Fields§
§click: ClickHandler
§signal: Option<i32>
§icons_format: Option<String>
§theme_overrides: Option<ThemeOverrides>
§icons_overrides: Option<HashMap<String, Icon>>
§merge_with_next: bool
§error_interval: u64
§error_format: Config
§error_fullscreen_format: Config
§if_command: Option<String>
Trait Implementations§
source§impl Debug for CommonBlockConfig
impl Debug for CommonBlockConfig
source§impl Default for CommonBlockConfig
impl Default for CommonBlockConfig
source§fn default() -> Self
fn default() -> Self
Return CommonBlockConfig { click: Default::default(), signal: Default::default(), icons_format: Default::default(), theme_overrides: Default::default(), icons_overrides: Default::default(), merge_with_next: Default::default(), error_interval: 5, error_format: Default::default(), error_fullscreen_format: Default::default(), if_command: Default::default() }
source§impl<'de> Deserialize<'de> for CommonBlockConfigwhere
CommonBlockConfig: Default,
impl<'de> Deserialize<'de> for CommonBlockConfigwhere
CommonBlockConfig: 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 Freeze for CommonBlockConfig
impl !RefUnwindSafe for CommonBlockConfig
impl Send for CommonBlockConfig
impl Sync for CommonBlockConfig
impl Unpin for CommonBlockConfig
impl !UnwindSafe for CommonBlockConfig
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§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.