[−][src]Enum reqwest_mock::client::StubStrictness
Control how strict the StubClient
is about matching stubs to the requests you make through
the client.
When you make a request it consists of a url, a HTTP method, headers and a body. To determine which
response to return the StubClient
checks the different fields against the ones stored in its
list of stubs. You can control which fields are checked for equality.
TODO: Determine the need of matching the full header.
Variants
Full equality in all fields between stub and actual request required.
body
, method
and url
have to be equal.
headers
, method
and url
have to be equal.
method
and url
have to be equal.
url
has to be equal.
Trait Implementations
impl Clone for StubStrictness
[src]
fn clone(&self) -> StubStrictness
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StubStrictness
[src]
impl Eq for StubStrictness
[src]
impl PartialEq<StubStrictness> for StubStrictness
[src]
fn eq(&self, other: &StubStrictness) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for StubStrictness
[src]
impl StructuralPartialEq for StubStrictness
[src]
Auto Trait Implementations
impl RefUnwindSafe for StubStrictness
impl Send for StubStrictness
impl Sync for StubStrictness
impl Unpin for StubStrictness
impl UnwindSafe for StubStrictness
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,