pub struct GeneralOpt {Show 17 fields
pub default: bool,
pub everything: bool,
pub detail: bool,
pub begin: String,
pub end: Option<String>,
pub duration: Option<String>,
pub filter: Option<Regex>,
pub sort: bool,
pub rsort: bool,
pub top: u32,
pub repeat_title: Option<usize>,
pub output_format: Option<OutputFormat>,
pub output: Option<String>,
pub disable_title: bool,
pub yesterdays: Option<String>,
pub br: Option<String>,
pub raw: bool,
}
Fields§
§default: bool
Show all top layer fields. If –default is specified, it overrides any specified fields via –fields.
everything: bool
Show all fields. If –everything is specified, –fields and –default are overridden.
detail: bool
Show more infomation other than default.
begin: String
Begin time, same format as replay
end: Option<String>
End time, same format as replay
duration: Option<String>
Time string specifying the duration, e.g. “10 min”{n} Keywords: days min, h, sec{n} Relative: {humantime}, e.g. “2 days 3 hr 15m 10sec”{n} _
filter: Option<Regex>
Take a regex and apply to –select selected field. See command level doc for example.
sort: bool
Sort (lower to higher) by –select selected field. See command level doc for example.
rsort: bool
Sort (higher to lower) by –select selected field. See command level doc for example.
top: u32
§repeat_title: Option<usize>
Repeat title, for each N line, it will render a line of title. Only for raw output format.
output_format: Option<OutputFormat>
Output format. Choose from raw, csv, tsv, kv, json, openmetrics. Default to raw
output: Option<String>
Output destination, default to stdout.
disable_title: bool
Disable title in raw, csv or tsv format output
yesterdays: Option<String>
Days adjuster, same as -r option in replay.
br: Option<String>
Line break symbol between samples
raw: bool
Dump raw data without units or conversion
Trait Implementations§
Source§impl Args for GeneralOpt
impl Args for GeneralOpt
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
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Clone for GeneralOpt
impl Clone for GeneralOpt
Source§fn clone(&self) -> GeneralOpt
fn clone(&self) -> GeneralOpt
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl CommandFactory for GeneralOpt
impl CommandFactory for GeneralOpt
Source§impl Debug for GeneralOpt
impl Debug for GeneralOpt
Source§impl Default for GeneralOpt
impl Default for GeneralOpt
Source§fn default() -> GeneralOpt
fn default() -> GeneralOpt
Source§impl FromArgMatches for GeneralOpt
impl FromArgMatches for GeneralOpt
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>
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>
ArgMatches
to self
.