pub struct OutputFlags {Show 16 fields
pub output_format: Option<OutputFormat>,
pub print_schema: bool,
pub select: Vec<String>,
pub filter: Vec<String>,
pub sort: Option<String>,
pub dedupe_by: Option<String>,
pub count_only: bool,
pub limit: Option<usize>,
pub cursor: Option<String>,
pub redact: bool,
pub truncate_cell: Option<usize>,
pub max_output_bytes: Option<usize>,
pub summary: bool,
pub output: Option<PathBuf>,
pub checksum: bool,
pub row_count: Option<RowCountMode>,
}Expand description
How the answer is shaped before it leaves.
Fields§
§output_format: Option<OutputFormat>Shape of the primary channel.
print_schema: boolEmit the output contract and stop, without reaching the server.
select: Vec<String>Keep only these fields, separated by commas.
--fields is the same flag under the other name agent tooling reaches
for. An alias adds a spelling and removes none, so the contract keeps
naming one flag while a caller who wrote the other is answered instead
of refused.
filter: Vec<String>Keep only rows passing the test; repeatable, joined by conjunction.
sort: Option<String>Order ascending by this field.
dedupe_by: Option<String>Drop later rows repeating this field’s value.
count_only: boolReturn the count instead of the rows.
limit: Option<usize>Ceiling on returned rows.
-n is the short form the same tooling writes. It is a second spelling
of this one flag and never a second ceiling, so the two cannot disagree.
cursor: Option<String>Continue from the previous page.
redact: boolReplace credential-shaped text inside cells with a fixed mark.
truncate_cell: Option<usize>Shorten any cell above this many characters.
max_output_bytes: Option<usize>Ceiling on total volume; whole rows are dropped to fit.
summary: boolReturn a summary instead of the whole set.
output: Option<PathBuf>Write the result to a file instead of the primary channel.
checksum: boolAppend the signature of the result.
row_count: Option<RowCountMode>What a change count means.
Trait Implementations§
Source§impl Args for OutputFlags
impl Args for OutputFlags
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for OutputFlags
impl Clone for OutputFlags
Source§impl Debug for OutputFlags
impl Debug for OutputFlags
Source§impl FromArgMatches for OutputFlags
impl FromArgMatches for OutputFlags
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn 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>
Source§fn 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.Source§fn 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.