pub struct SendRequest { /* private fields */ }Implementations§
Source§impl SendRequest
impl SendRequest
pub fn get(url: Url) -> SendRequest
pub fn patch(url: Url) -> SendRequest
pub fn put(url: Url) -> SendRequest
pub fn post(url: Url) -> SendRequest
pub fn delete(url: Url) -> SendRequest
pub fn into_inner(self) -> Request
pub fn stuff( self, modifier: impl SendModifier, ) -> Result<SendRequest, SendError>
pub async fn load<R>(self) -> Result<R, SendError>where
R: for<'de> Deserialize<'de>,
pub async fn load_by_client<R>(self, client: Client) -> Result<R, SendError>where
R: for<'de> Deserialize<'de>,
pub async fn send<R>(self) -> Result<R, SendError>where
R: for<'de> Deserialize<'de>,
pub async fn send_by_client<R>(self, client: Client) -> Result<R, SendError>where
R: for<'de> Deserialize<'de>,
pub fn exec(self) -> impl Future<Output = Result<Response, Error>>
Methods from Deref<Target = 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 Debug for SendRequest
impl Debug for SendRequest
Source§impl Deref for SendRequest
impl Deref for SendRequest
Source§impl DerefMut for SendRequest
impl DerefMut for SendRequest
Auto Trait Implementations§
impl !Freeze for SendRequest
impl !RefUnwindSafe for SendRequest
impl Send for SendRequest
impl Sync for SendRequest
impl Unpin for SendRequest
impl !UnwindSafe for SendRequest
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
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more