pub fn dispatch(
client: &Client,
base_url: &str,
auth: &Auth<'_>,
op: &ApiOperation,
matches: &ArgMatches,
) -> Result<Value, DispatchError>Expand description
Execute an API operation based on clap matches.
Convenience wrapper that chains PreparedRequest::from_operation +
build_body + PreparedRequest::send + SendResponse::into_json.