#[non_exhaustive]pub struct Request { /* private fields */ }Implementations§
Source§impl Request
impl Request
pub fn new(method: Method, uri: impl Into<String>) -> Self
pub fn auth(self, auth: impl Into<Option<Auth>>) -> Self
pub fn user_agent(self, user_agent: impl Into<Option<String>>) -> Self
pub fn content_type(self, content_type: impl Into<Option<String>>) -> Self
pub fn body(self, body: impl Into<Option<Bytes>>) -> Self
pub fn unique_id(self, unique_id: impl Into<Option<String>>) -> Self
pub fn add_header( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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