pub struct Request { /* private fields */ }
Expand description
A request which can be executed with Client::execute()
.
Implementations§
Source§impl Request
impl Request
Sourcepub fn method_mut(&mut self) -> &mut Method
pub fn method_mut(&mut self) -> &mut Method
Get a mutable reference to the method.
Sourcepub fn headers_mut(&mut self) -> &mut HeaderMap
pub fn headers_mut(&mut self) -> &mut HeaderMap
Get a mutable reference to the headers.
Sourcepub fn timeout_mut(&mut self) -> &mut Option<Duration>
pub fn timeout_mut(&mut self) -> &mut Option<Duration>
Get a mutable reference to the timeout.
Sourcepub fn version_mut(&mut self) -> &mut Version
pub fn version_mut(&mut self) -> &mut Version
Get a mutable reference to the http version.
Trait Implementations§
Source§impl Service<Request> for &Client
impl Service<Request> for &Client
Source§impl Service<Request> for Client
impl Service<Request> for Client
Auto Trait Implementations§
impl !Freeze for Request
impl !RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin 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