pub struct RequestOptions {
pub method: Method,
pub path: String,
pub query_params: HashMap<String, String>,
pub body: Option<RequestBody>,
pub headers: HashMap<String, String>,
}Expand description
Options for an HTTP request.
Fields§
§method: MethodHTTP method.
path: StringAPI endpoint path.
query_params: HashMap<String, String>URL query parameters.
body: Option<RequestBody>Optional request body.
headers: HashMap<String, String>Additional HTTP headers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestOptions
impl RefUnwindSafe for RequestOptions
impl Send for RequestOptions
impl Sync for RequestOptions
impl Unpin for RequestOptions
impl UnsafeUnpin for RequestOptions
impl UnwindSafe for RequestOptions
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