pub enum RequestCommands {
Get {
data: RequestData,
},
Post {
data: RequestData,
},
Put {
data: RequestData,
},
Delete {
data: RequestData,
},
Patch {
data: RequestData,
},
}Variants§
Get
Fields
§
data: RequestDataPost
Fields
§
data: RequestDataPut
Fields
§
data: RequestDataDelete
Fields
§
data: RequestDataPatch
Fields
§
data: RequestDataImplementations§
Source§impl RequestCommands
impl RequestCommands
pub fn get_data(&self) -> &RequestData
pub fn print_request_method(&self, url: &str, status: u16, elapsed: u128)
pub fn print_request_headers(headers: &[(String, String)])
pub fn print_request_body(body: &str)
pub async fn print_request_response( response: &HttpResponse, verbose: bool, stream: bool, ) -> Result<(), Box<dyn Error>>
pub fn colorize_status(status: u16) -> ColoredString
pub fn prompt_missing_header_data( headers: Vec<(String, String)>, ) -> Vec<(String, String)>
pub fn prompt_missing_body_data(body: String) -> String
Sourcepub fn is_text_data(data: &[u8]) -> bool
pub fn is_text_data(data: &[u8]) -> bool
Checks if the Vec
Trait Implementations§
Source§impl Clone for RequestCommands
impl Clone for RequestCommands
Source§fn clone(&self) -> RequestCommands
fn clone(&self) -> RequestCommands
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestCommands
impl Debug for RequestCommands
Source§impl Display for RequestCommands
impl Display for RequestCommands
Source§impl FromArgMatches for RequestCommands
impl FromArgMatches for RequestCommands
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 RequestCommands
impl Subcommand for RequestCommands
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 RequestCommands
impl RefUnwindSafe for RequestCommands
impl Send for RequestCommands
impl Sync for RequestCommands
impl Unpin for RequestCommands
impl UnwindSafe for RequestCommands
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.