pub struct RawRequest<'a> {
pub method: Method,
pub path: &'a str,
pub headers: HeaderMap,
pub body: Option<&'a [u8]>,
pub timeout: Option<Duration>,
}Expand description
An arbitrary request for ApiClient::request_raw.
Fields§
§method: Method§path: &'a strPath (and optional query) relative to the client’s base URL.
headers: HeaderMap§body: Option<&'a [u8]>§timeout: Option<Duration>Overrides the client-wide 30s timeout for this request only.
Auto Trait Implementations§
impl<'a> Freeze for RawRequest<'a>
impl<'a> RefUnwindSafe for RawRequest<'a>
impl<'a> Send for RawRequest<'a>
impl<'a> Sync for RawRequest<'a>
impl<'a> Unpin for RawRequest<'a>
impl<'a> UnsafeUnpin for RawRequest<'a>
impl<'a> UnwindSafe for RawRequest<'a>
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