pub enum Cmd {
Show 18 variants
Init(Args),
Send(Args),
Create(CreateArgs),
Use(SwitchArgs),
Ls(Args),
Cp(CpArgs),
Mv(MvArgs),
Rm(RmArgs),
Show {
command: ShowCmd,
},
Edit,
Query {
command: QueryCmd,
},
Header {
command: HeaderCmd,
},
Body(Args),
Last {
command: Option<LastCmd>,
},
History(Args),
Env {
command: EnvCmd,
},
Var {
command: VarCmd,
},
Config {
command: ConfigCmd,
},
}
Variants§
Init(Args)
Initialize quartz
Send(Args)
Send request using the current handle’s endpoint and outputs the response
Create(CreateArgs)
Create a new handle
Use(SwitchArgs)
Switch handle or edit its endpoint
Ls(Args)
Lists available handles
Cp(CpArgs)
Copy an endpoint from one handle to another
Mv(MvArgs)
Move handles
Rm(RmArgs)
Delete handles
Show
Print out endpoint informations
Edit
Open an editor to modify endpoint in use
Query
Manage current endpoint’s query params
Header
Manage current endpoint’s headers. Without subcomand, it prints the headers list.
Body(Args)
Manage current handle’s endpoint request body
Last
Print information about last request or response
History(Args)
Print request history
Env
Manage project’s environments
Var
Manage current environment’s variables
Config
Manage configuration for quartz
Trait Implementations§
Source§impl FromArgMatches for Cmd
impl FromArgMatches for Cmd
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>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§impl Subcommand for Cmd
impl Subcommand for Cmd
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Cmd
impl RefUnwindSafe for Cmd
impl Send for Cmd
impl Sync for Cmd
impl Unpin for Cmd
impl UnwindSafe for Cmd
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