[][src]Struct loader_rs::testing_helpers::MockLoaderRequestBuilder

pub struct MockLoaderRequestBuilder { /* fields omitted */ }

Builder for MockLoaderRequest.

Implementations

impl MockLoaderRequestBuilder[src]

pub fn ensure_mock_calls(&mut self, value: bool) -> &mut Self[src]

pub fn expected_mock_calls(&mut self, value: usize) -> &mut Self[src]

pub fn http_path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn http_verb<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn resp_content_type<VALUE: Into<String>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn resp_status_code(&mut self, value: usize) -> &mut Self[src]

pub fn resp_body_file_path<VALUE: Into<Vec<&'static str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn resp_body<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn build(&self) -> Result<MockLoaderRequest, String>[src]

Builds a new MockLoaderRequest.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for MockLoaderRequestBuilder[src]

impl Default for MockLoaderRequestBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,