Struct iquery::command_line::CommandLine
source · pub struct CommandLine {
pub format: Format,
pub command: SubCommand,
}
Expand description
Top-level command.
Fields§
§format: Format
the format to be used to display the results (json, text).
command: SubCommand
Trait Implementations§
source§impl Command for CommandLine
impl Command for CommandLine
type Result = String
fn execute<'life0, 'life1, 'async_trait, P>(
&'life0 self,
provider: &'life1 P
) -> Pin<Box<dyn Future<Output = Result<Self::Result, Error>> + Send + 'async_trait>>where
P: 'async_trait + DiagnosticsProvider,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
source§impl Debug for CommandLine
impl Debug for CommandLine
source§impl FromArgs for CommandLine
impl FromArgs for CommandLine
source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str]
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str] ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
source§impl PartialEq for CommandLine
impl PartialEq for CommandLine
source§fn eq(&self, other: &CommandLine) -> bool
fn eq(&self, other: &CommandLine) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CommandLine
impl TopLevelCommand for CommandLine
Auto Trait Implementations§
impl Freeze for CommandLine
impl RefUnwindSafe for CommandLine
impl Send for CommandLine
impl Sync for CommandLine
impl Unpin for CommandLine
impl UnwindSafe for CommandLine
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more