pub struct Args {Show 33 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: Option<bool>,
pub cpu_show_temp: Option<bool>,
pub cpu_speed: Option<bool>,
pub cpu_frequency: Option<bool>,
pub cpu_cores: Option<bool>,
pub cpu_brand: Option<bool>,
pub shell_path: Option<bool>,
pub shell_version: Option<bool>,
pub refresh_rate: Option<bool>,
pub de_version: Option<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: Option<bool>§cpu_show_temp: Option<bool>§cpu_speed: Option<bool>§cpu_frequency: Option<bool>§cpu_cores: Option<bool>§cpu_brand: Option<bool>§shell_path: Option<bool>§shell_version: Option<bool>§refresh_rate: Option<bool>§de_version: Option<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 UnsafeUnpin 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