pub struct Args {Show 43 fields
pub help: bool,
pub format: OutputFormat,
pub init: bool,
pub reinit: bool,
pub list_options: bool,
pub config_path: Option<String>,
pub no_config: bool,
pub ascii_distro: Option<String>,
pub ascii_colors: Option<String>,
pub custom_ascii_path: Option<String>,
pub battery_display: Option<String>,
pub disk_display: Option<String>,
pub disk_subtitle: Option<String>,
pub memory_unit: Option<String>,
pub package_managers: Option<String>,
pub uptime_shorthand: Option<String>,
pub os_age_shorthand: Option<String>,
pub distro_display: Option<String>,
pub color_blocks: Option<String>,
pub cpu_temp: Option<String>,
pub only_modules: Option<String>,
pub hide_modules: Option<String>,
pub memory_percent_on: bool,
pub memory_percent_off: bool,
pub cpu_show_temp_on: bool,
pub cpu_show_temp_off: bool,
pub cpu_speed_on: bool,
pub cpu_speed_off: bool,
pub cpu_frequency_on: bool,
pub cpu_frequency_off: bool,
pub cpu_cores_on: bool,
pub cpu_cores_off: bool,
pub cpu_brand_on: bool,
pub cpu_brand_off: bool,
pub shell_path_on: bool,
pub shell_path_off: bool,
pub shell_version_on: bool,
pub shell_version_off: bool,
pub refresh_rate_on: bool,
pub refresh_rate_off: bool,
pub de_version_on: bool,
pub de_version_off: bool,
pub ssh_hosts: Vec<String>,
}Fields§
§help: boolShow this help message and exit
format: OutputFormatOutput format: pretty (default) or json
init: boolCreate the default config file in ~/.config/leenfetch/
reinit: boolReinitialize the config file to defaults
list_options: boolShow all available config options and values
config_path: Option<String>Load configuration from a custom file
no_config: boolIgnore config files and use built-in defaults
ascii_distro: Option<String>§ascii_colors: Option<String>§custom_ascii_path: Option<String>§battery_display: Option<String>§disk_display: Option<String>§disk_subtitle: Option<String>§memory_unit: Option<String>§package_managers: Option<String>§uptime_shorthand: Option<String>§os_age_shorthand: Option<String>§distro_display: Option<String>§color_blocks: Option<String>§cpu_temp: Option<String>§only_modules: Option<String>§hide_modules: Option<String>§memory_percent_on: bool§memory_percent_off: bool§cpu_show_temp_on: bool§cpu_show_temp_off: bool§cpu_speed_on: bool§cpu_speed_off: bool§cpu_frequency_on: bool§cpu_frequency_off: bool§cpu_cores_on: bool§cpu_cores_off: bool§cpu_brand_on: bool§cpu_brand_off: bool§shell_path_on: bool§shell_path_off: bool§shell_version_on: bool§shell_version_off: bool§refresh_rate_on: bool§refresh_rate_off: bool§de_version_on: bool§de_version_off: bool§ssh_hosts: Vec<String>Fetch info from remote hosts via SSH (e.g., user@host or host:port)
Implementations§
Source§impl Args
impl Args
pub fn into_overrides(self) -> CliOverrides
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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> 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