Struct httptest::matchers::KV[][src]

pub struct KV<K: ?Sized, V: ?Sized> where
    Self: Sized,
    K: ToOwned,
    V: ToOwned
{ pub k: K::Owned, pub v: V::Owned, }

A key-value pair.

Fields

k: K::Owned

The key

v: V::Owned

The value

Implementations

impl<K: ?Sized, V: ?Sized> KV<K, V> where
    K: ToOwned,
    V: ToOwned
[src]

pub fn new(k: &K, v: &V) -> Self[src]

Create a new KV. This will clone the provided k and v.

Trait Implementations

impl<K: Debug + ?Sized, V: Debug + ?Sized> Debug for KV<K, V> where
    Self: Sized,
    K: ToOwned,
    V: ToOwned,
    K::Owned: Debug,
    V::Owned: Debug
[src]

impl<M, K: ?Sized, V: ?Sized> Matcher<KV<K, V>> for Key<M> where
    K: ToOwned + Debug,
    V: ToOwned,
    M: Matcher<K>, 
[src]

impl<M, K: ?Sized, V: ?Sized> Matcher<KV<K, V>> for Value<M> where
    K: ToOwned,
    V: ToOwned + Debug,
    M: Matcher<V>, 
[src]

impl<K: ?Sized, V: ?Sized, KMatcher, VMatcher> Matcher<KV<K, V>> for (KMatcher, VMatcher) where
    K: ToOwned + Debug,
    V: ToOwned + Debug,
    KMatcher: Matcher<K>,
    VMatcher: Matcher<V>, 
[src]

impl<K: PartialEq + ?Sized, V: PartialEq + ?Sized> PartialEq<KV<K, V>> for KV<K, V> where
    Self: Sized,
    K: ToOwned,
    V: ToOwned,
    K::Owned: PartialEq,
    V::Owned: PartialEq
[src]

impl<K: PartialOrd + ?Sized, V: PartialOrd + ?Sized> PartialOrd<KV<K, V>> for KV<K, V> where
    Self: Sized,
    K: ToOwned,
    V: ToOwned,
    K::Owned: PartialOrd,
    V::Owned: PartialOrd
[src]

impl<K: ?Sized, V: ?Sized> StructuralPartialEq for KV<K, V> where
    Self: Sized,
    K: ToOwned,
    V: ToOwned
[src]

Auto Trait Implementations

impl<K: ?Sized, V: ?Sized> RefUnwindSafe for KV<K, V> where
    <K as ToOwned>::Owned: RefUnwindSafe,
    <V as ToOwned>::Owned: RefUnwindSafe

impl<K: ?Sized, V: ?Sized> Send for KV<K, V> where
    <K as ToOwned>::Owned: Send,
    <V as ToOwned>::Owned: Send

impl<K: ?Sized, V: ?Sized> Sync for KV<K, V> where
    <K as ToOwned>::Owned: Sync,
    <V as ToOwned>::Owned: Sync

impl<K: ?Sized, V: ?Sized> Unpin for KV<K, V> where
    <K as ToOwned>::Owned: Unpin,
    <V as ToOwned>::Owned: Unpin

impl<K: ?Sized, V: ?Sized> UnwindSafe for KV<K, V> where
    <K as ToOwned>::Owned: UnwindSafe,
    <V as ToOwned>::Owned: UnwindSafe

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> Instrument for T[src]

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

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.