Struct below_dump::command::GeneralOpt [−][src]
pub struct GeneralOpt {Show fields
pub default: bool,
pub everything: bool,
pub detail: bool,
pub begin: String,
pub end: 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
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, kv, json. Default to raw
output: Option<String>Output destination, default to stdout.
disable_title: boolDisable title in raw or csv 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
Returns the “default value” for a type. Read more
Builds the struct from clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic. Read more
Builds the struct from the command line arguments (std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more
Builds the struct from the command line arguments (std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, Gets the struct from any iterator such as a Vec of your making.
Print the error message and quit the program in case of failure. Read more
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, Gets the struct from any iterator such as a Vec of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for GeneralOptimpl Send for GeneralOptimpl Sync for GeneralOptimpl Unpin for GeneralOptimpl UnwindSafe for GeneralOptBlanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self.