pub struct ApiCallArgs {
pub method: String,
pub path: String,
pub data: Option<String>,
pub header: Vec<String>,
pub query: Vec<String>,
}Expand description
ign api call args (09-03, EXT-01). Arbitrary verbs accepted —
reqwest’s Method parser validates (usage-class refusal for
garbage); --data is RAW TEXT on ANY method (GET/DELETE bodies
allowed — curl parity; the gateway’s answer classifies); ONE query
mechanism (repeatable --query k=v, never ? in --path).
Fields§
§method: StringHTTP method (GET, POST, PUT, DELETE, PATCH, HEAD, …)
path: StringAbsolute path on the gateway (must start with /; no ?, no host)
data: Option<String>Raw body text passthrough (rides ANY method — curl parity)
header: Vec<String>Extra request header Name: Value (repeatable; split on the
FIRST :; auth-pattern names are refused pre-I/O)
query: Vec<String>Query pair k=v (repeatable; split on the FIRST = — the
ONE query mechanism)
Trait Implementations§
Source§impl Args for ApiCallArgs
impl Args for ApiCallArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for ApiCallArgs
impl Debug for ApiCallArgs
Source§impl FromArgMatches for ApiCallArgs
impl FromArgMatches for ApiCallArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ApiCallArgs
impl RefUnwindSafe for ApiCallArgs
impl Send for ApiCallArgs
impl Sync for ApiCallArgs
impl Unpin for ApiCallArgs
impl UnsafeUnpin for ApiCallArgs
impl UnwindSafe for ApiCallArgs
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