pub struct RequestBuilder { /* private fields */ }
Available on crate feature
__private
only.Implementations§
Source§impl RequestBuilder
impl RequestBuilder
pub fn body(self, body: impl Into<Body>) -> Self
pub fn json<T>(self, json: &T) -> Selfwhere
T: Serialize,
pub fn header<K, V>(self, key: K, value: V) -> Selfwhere
HeaderName: TryFrom<K>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
HeaderValue: TryFrom<V>,
<HeaderValue as TryFrom<V>>::Error: Into<Error>,
pub fn multipart(self, form: Form) -> Self
Trait Implementations§
Source§impl IntoFuture for RequestBuilder
impl IntoFuture for RequestBuilder
Source§type Output = TestResponse
type Output = TestResponse
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <RequestBuilder as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <RequestBuilder as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !Freeze for RequestBuilder
impl !RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl !UnwindSafe for RequestBuilder
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