pub struct Cli {
pub currencies: Vec<SmolStr>,
pub command: FormatOption,
pub no_time: bool,
pub compact: bool,
pub no_cache: bool,
pub force_color: bool,
pub sort_by: SortBy,
pub perspective: Option<SmolStr>,
pub should_invert: bool,
pub max_decimals: u8,
pub show_days: ShowDays,
}Fields§
§currencies: Vec<SmolStr>Which currencies do you want to fetch rates for?
command: FormatOption§no_time: boolDon’t show time in output
compact: boolPrint currencies in a compact single line
no_cache: boolOverride the cache
force_color: boolForce color in output. Normally it will disable color in pipes
sort_by: SortBySort by the currency name (in alphabetical order), or by the rate value (low -> high)
perspective: Option<SmolStr>Recalculate to the perspective from an included currency
should_invert: boolInvert the rate
max_decimals: u8Max decimals to keep in price.
show_days: ShowDaysAmount of data
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
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 Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
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 Cli
impl Parser for Cli
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.