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: 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: 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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns clap::App corresponding to the struct.

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

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

Gets the struct from any iterator such as a Vec of your making. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.