pub struct CliRequest {Show 13 fields
pub method: String,
pub url: String,
pub headers: HashMap<String, Value>,
pub body: Option<Value>,
pub body_base64: Option<String>,
pub body_file: Option<String>,
pub body_multipart: Option<Vec<MultipartPart>>,
pub body_urlencoded: Option<Vec<UrlencodedPart>>,
pub options: RequestOptions,
pub config_overrides: ConfigPatch,
pub log_categories: Vec<String>,
pub output_format: OutputFormat,
pub dry_run: bool,
}Fields§
§method: String§url: String§headers: HashMap<String, Value>§body: Option<Value>§body_base64: Option<String>§body_file: Option<String>§body_multipart: Option<Vec<MultipartPart>>§body_urlencoded: Option<Vec<UrlencodedPart>>§options: RequestOptions§config_overrides: ConfigPatch§log_categories: Vec<String>Log categories enabled via –log or –verbose. Includes “startup” if requested.
output_format: OutputFormatOutput format for CLI output
dry_run: boolPreview the request without executing it
Auto Trait Implementations§
impl Freeze for CliRequest
impl RefUnwindSafe for CliRequest
impl Send for CliRequest
impl Sync for CliRequest
impl Unpin for CliRequest
impl UnsafeUnpin for CliRequest
impl UnwindSafe for CliRequest
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