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

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

A key-value pair.

Fields

k: K::Owned

The key

v: V::Owned

The value

Implementations

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

Trait Implementations

Formats the value using the given formatter. Read more

Map an input to output.

formatted name of the mapper. This is used for debugging purposes and should typically look like a fmt::Debug representation. Read more

Map an input to output.

formatted name of the mapper. This is used for debugging purposes and should typically look like a fmt::Debug representation. Read more

Map an input to output.

formatted name of the mapper. This is used for debugging purposes and should typically look like a fmt::Debug representation. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

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

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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