Struct below_dump::command::GeneralOpt
source · [−]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: boolShow all top layer fields. If –default is specified, it overrides any specified fields via –fields.
everything: boolShow all fields. If –everything is specified, –fields and –default are overridden.
detail: boolShow more infomation other than default.
begin: StringBegin 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: boolSort (lower to higher) by –select selected field. See command level doc for example.
rsort: boolSort (higher to lower) by –select selected field. See command level doc for example.
top: u32repeat_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. Default to raw
output: Option<String>Output destination, default to stdout.
disable_title: boolDisable 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: boolDump raw data without units or conversion
Trait Implementations
sourceimpl Args for GeneralOpt
impl Args for GeneralOpt
sourceimpl Clone for GeneralOpt
impl Clone for GeneralOpt
sourcefn clone(&self) -> GeneralOpt
fn clone(&self) -> GeneralOpt
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl CommandFactory for GeneralOpt
impl CommandFactory for GeneralOpt
sourcefn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
CommandFactory::command_for_updatesourcefn command_for_update<'help>() -> App<'help>
fn command_for_update<'help>() -> App<'help>
sourceimpl Debug for GeneralOpt
impl Debug for GeneralOpt
sourceimpl Default for GeneralOpt
impl Default for GeneralOpt
sourcefn default() -> GeneralOpt
fn default() -> GeneralOpt
sourceimpl FromArgMatches for GeneralOpt
impl FromArgMatches for GeneralOpt
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn 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>
sourcefn 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.sourcefn 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.