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: 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
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, kv, json. Default to raw
output: Option<String>
Output destination, default to stdout.
disable_title: bool
Disable 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: bool
Dump 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,
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]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,
[src]
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]Gets the struct from any iterator such as a Vec
of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for GeneralOpt
impl Send for GeneralOpt
impl Sync for GeneralOpt
impl Unpin for GeneralOpt
impl UnwindSafe for GeneralOpt
Blanket 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
.