pub struct Flags {Show 27 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: String,
pub custom_logo_path: String,
pub de_version: bool,
pub disk_display: String,
pub disk_percent: bool,
pub disk_show: String,
pub disk_subtitle: String,
pub distro_shorthand: String,
pub gpu_brand: bool,
pub gpu_type: String,
pub kernel_shorthand: bool,
pub memory_percent: bool,
pub memory_unit: String,
pub os_age_shorthand: String,
pub package_managers: String,
pub shell_path: bool,
pub shell_version: bool,
pub speed_shorthand: bool,
pub uptime_shorthand: String,
}Expand description
Configuration flags corresponding to display and formatting options.
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: String§custom_logo_path: String§de_version: bool§disk_display: String§disk_percent: bool§disk_show: String§disk_subtitle: String§distro_shorthand: String§gpu_brand: bool§gpu_type: String§kernel_shorthand: bool§memory_percent: bool§memory_unit: String§os_age_shorthand: String§package_managers: String§shell_path: bool§shell_version: bool§speed_shorthand: bool§uptime_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 UnsafeUnpin 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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