pub struct Flags {Show 23 fields
pub ascii_distro: String,
pub ascii_colors: String,
pub battery_display: String,
pub color_blocks: String,
pub cpu_brand: bool,
pub cpu_cores: bool,
pub cpu_frequency: bool,
pub cpu_speed: bool,
pub cpu_temp: char,
pub cpu_show_temp: bool,
pub custom_ascii_path: String,
pub de_version: bool,
pub distro_display: String,
pub disk_display: String,
pub disk_subtitle: String,
pub memory_percent: bool,
pub memory_unit: String,
pub package_managers: String,
pub refresh_rate: bool,
pub shell_path: bool,
pub shell_version: bool,
pub uptime_shorthand: String,
pub os_age_shorthand: String,
}Expand description
Fine-grained configuration for how each block is displayed. Most fields correspond to a feature or formatting option.
Fields§
§ascii_distro: String§ascii_colors: String§battery_display: String§color_blocks: String§cpu_brand: bool§cpu_cores: bool§cpu_frequency: bool§cpu_speed: bool§cpu_temp: char§cpu_show_temp: bool§custom_ascii_path: String§de_version: bool§distro_display: String§disk_display: String§disk_subtitle: String§memory_percent: bool§memory_unit: String§package_managers: String§refresh_rate: bool§shell_path: bool§shell_version: bool§uptime_shorthand: String§os_age_shorthand: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Flags
impl<'de> Deserialize<'de> for Flags
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 Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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