pub struct RawRequest {
pub url: String,
pub method: HttpMethod,
pub headers: HashMap<String, String>,
pub body: Value,
pub stream: bool,
}Expand description
Raw HTTP request.
headers normally carry the API key, so the Debug impl redacts values for
authentication-related header names.
Fields§
§url: String§method: HttpMethod§headers: HashMap<String, String>§body: Value§stream: boolTrait Implementations§
Source§impl Clone for RawRequest
impl Clone for RawRequest
Source§fn clone(&self) -> RawRequest
fn clone(&self) -> RawRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RawRequest
impl RefUnwindSafe for RawRequest
impl Send for RawRequest
impl Sync for RawRequest
impl Unpin for RawRequest
impl UnsafeUnpin for RawRequest
impl UnwindSafe for RawRequest
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