pub struct RequestParts { /* private fields */ }Implementations§
Source§impl RequestParts
impl RequestParts
pub fn new(method: Method, path: impl Into<String>) -> Self
pub fn with_operation(self, operation: impl Into<String>) -> Self
pub fn with_query<I>(self, query: I) -> Self
pub fn with_headers(self, headers: HeaderMap) -> Self
pub fn with_json_body(self, body: Value) -> Self
pub fn with_text_body(self, body: impl Into<String>) -> Self
pub fn with_bytes_body(self, body: Vec<u8>) -> Self
pub fn operation(&self) -> Option<&str>
pub fn method(&self) -> Method
pub fn path(&self) -> &str
pub fn query(&self) -> &[(String, String)]
pub fn headers(&self) -> &HeaderMap
pub fn body(&self) -> &RequestBody
Trait Implementations§
Source§impl Clone for RequestParts
impl Clone for RequestParts
Source§fn clone(&self) -> RequestParts
fn clone(&self) -> RequestParts
Returns a duplicate of the value. Read more
1.0.0 · 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 RequestParts
impl RefUnwindSafe for RequestParts
impl Send for RequestParts
impl Sync for RequestParts
impl Unpin for RequestParts
impl UnsafeUnpin for RequestParts
impl UnwindSafe for RequestParts
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