Struct RequestBuilderWrapper

Source
pub struct RequestBuilderWrapper<R, B: GenericRequestBuilder<R>>(/* private fields */);

Implementations§

Source§

impl RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>

Source

pub fn header(self, name: &str, value: &str) -> Self

Source

pub async fn send(self) -> Result<SimulatorResponse, Error>

§Errors
  • If there was an error while sending request, redirect loop was detected or redirect limit was exhausted.
Source§

impl RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>

Source

pub fn json<T: Serialize + ?Sized>(self, body: &T) -> Self

§Panics
  • If the serde_json serialization to bytes fails
Source

pub fn form<T: Serialize + ?Sized>(self, form: &T) -> Self

§Panics
  • If the serde_json serialization to bytes fails
Source§

impl RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>

Source

pub fn header(self, name: &str, value: &str) -> Self

Source

pub async fn send(self) -> Result<ReqwestResponse, Error>

§Errors
  • If there was an error while sending request, redirect loop was detected or redirect limit was exhausted.
Source§

impl RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>

Source

pub fn json<T: Serialize + ?Sized>(self, body: &T) -> Self

§Panics
  • If the serde_json serialization to bytes fails
Source

pub fn form<T: Serialize + ?Sized>(self, form: &T) -> Self

§Panics
  • If the serde_json serialization to bytes fails

Trait Implementations§

Source§

impl GenericClient<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>> for Client

Source§

fn request(&self, method: Method, url: &str) -> ReqwestRequestBuilder

Source§

fn get(&self, url: &str) -> RB

Source§

fn post(&self, url: &str) -> RB

Source§

fn put(&self, url: &str) -> RB

Source§

fn patch(&self, url: &str) -> RB

Source§

fn delete(&self, url: &str) -> RB

Source§

fn head(&self, url: &str) -> RB

Source§

fn options(&self, url: &str) -> RB

Source§

impl GenericClient<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>> for Client

Source§

fn request(&self, _method: Method, _url: &str) -> SimulatorRequestBuilder

Source§

fn get(&self, url: &str) -> RB

Source§

fn post(&self, url: &str) -> RB

Source§

fn put(&self, url: &str) -> RB

Source§

fn patch(&self, url: &str) -> RB

Source§

fn delete(&self, url: &str) -> RB

Source§

fn head(&self, url: &str) -> RB

Source§

fn options(&self, url: &str) -> RB

Source§

impl GenericClient<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>> for SimulatorClient

Source§

fn request(&self, method: Method, url: &str) -> SimulatorRequestBuilder

Source§

fn get(&self, url: &str) -> RB

Source§

fn post(&self, url: &str) -> RB

Source§

fn put(&self, url: &str) -> RB

Source§

fn patch(&self, url: &str) -> RB

Source§

fn delete(&self, url: &str) -> RB

Source§

fn head(&self, url: &str) -> RB

Source§

fn options(&self, url: &str) -> RB

Source§

impl GenericClient<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>> for ReqwestClient

Source§

fn request(&self, method: Method, url: &str) -> ReqwestRequestBuilder

Source§

fn get(&self, url: &str) -> RB

Source§

fn post(&self, url: &str) -> RB

Source§

fn put(&self, url: &str) -> RB

Source§

fn patch(&self, url: &str) -> RB

Source§

fn delete(&self, url: &str) -> RB

Source§

fn head(&self, url: &str) -> RB

Source§

fn options(&self, url: &str) -> RB

Source§

impl GenericClientBuilder<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>, ClientWrapper<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>, Client>> for ClientBuilder

Source§

impl GenericClientBuilder<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>, ClientWrapper<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>, Client>> for ClientBuilder

Source§

impl GenericClientBuilder<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>, ClientWrapper<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>, Client>> for SimulatorClientBuilder

Source§

impl GenericClientBuilder<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>, ClientWrapper<RequestBuilderWrapper<ResponseWrapper<Response>, RequestBuilder>, Client>> for ReqwestClientBuilder

Auto Trait Implementations§

§

impl<R, B> Freeze for RequestBuilderWrapper<R, B>
where B: Freeze,

§

impl<R, B> RefUnwindSafe for RequestBuilderWrapper<R, B>

§

impl<R, B> Send for RequestBuilderWrapper<R, B>
where R: Send,

§

impl<R, B> Sync for RequestBuilderWrapper<R, B>
where R: Sync,

§

impl<R, B> Unpin for RequestBuilderWrapper<R, B>
where B: Unpin, R: Unpin,

§

impl<R, B> UnwindSafe for RequestBuilderWrapper<R, B>
where B: UnwindSafe, R: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T