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: 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: 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

Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Deprecated, replaced with CommandFactory::command
Deprecated, replaced with CommandFactory::command_for_update
Build a Command that can instantiate Self. Read more
Build a Command that can update self. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Parse from std::env::args_os(), exit on error
Parse from std::env::args_os(), return Err on error.
Parse from iterator, exit on error
Parse from iterator, return Err on error.
Update from iterator, exit on error
Update from iterator, return Err on error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Calls the given closure and return the result. Read more
Calls the given closure on self.
Calls the given closure on self.
Calls the given closure if condition == true.