[−][src]Trait httptest::mappers::Mapper
The core trait. Defines how an input value should be turned into an output value. This allows for a flexible pattern of composition where two or more mappers are chained together to form a readable and flexible manipulation.
There is a special case of a Mapper that outputs a bool that is called a Matcher.
Associated Types
type Out
The output type.
Required methods
Loading content...Implementations on Foreign Types
impl<K: ?Sized, V: ?Sized, KMapper, VMapper> Mapper<KV<K, V>> for (KMapper, VMapper) where
K: ToOwned,
V: ToOwned,
KMapper: Mapper<K, Out = bool>,
VMapper: Mapper<V, Out = bool>,
[src]
Loading content...
K: ToOwned,
V: ToOwned,
KMapper: Mapper<K, Out = bool>,
VMapper: Mapper<V, Out = bool>,
Implementors
impl<IN> Mapper<IN> for Any where
IN: ?Sized,
[src]
IN: ?Sized,
impl<IN, F> Mapper<IN> for MapFn<F> where
F: Fn(&IN) -> bool + Send,
[src]
F: Fn(&IN) -> bool + Send,
impl<IN: ?Sized> Mapper<IN> for AllOf<IN> where
IN: Debug,
[src]
IN: Debug,
impl<IN: ?Sized> Mapper<IN> for AnyOf<IN> where
IN: Debug,
[src]
IN: Debug,
impl<IN: ?Sized> Mapper<IN> for Matches where
IN: AsRef<[u8]>,
[src]
IN: AsRef<[u8]>,
impl<IN: ?Sized, M> Mapper<IN> for Inspect<M> where
IN: Debug,
M: Mapper<IN>,
M::Out: Debug,
[src]
IN: Debug,
M: Mapper<IN>,
M::Out: Debug,
impl<IN: ?Sized, M> Mapper<IN> for JsonDecoded<M> where
IN: AsRef<[u8]>,
M: Mapper<Value>,
[src]
IN: AsRef<[u8]>,
M: Mapper<Value>,
impl<IN: ?Sized, M> Mapper<IN> for Lowercase<M> where
IN: AsRef<[u8]>,
M: Mapper<[u8]>,
[src]
IN: AsRef<[u8]>,
M: Mapper<[u8]>,
impl<IN: ?Sized, M> Mapper<IN> for UrlDecoded<M> where
IN: AsRef<[u8]>,
M: Mapper<[KV<str, str>]>,
[src]
IN: AsRef<[u8]>,
M: Mapper<[KV<str, str>]>,
impl<IN: ?Sized, T: ?Sized> Mapper<IN> for Eq<T> where
T: Borrow<IN> + Debug + Send,
IN: PartialEq,
[src]
T: Borrow<IN> + Debug + Send,
IN: PartialEq,
impl<M, B> Mapper<Response<B>> for httptest::mappers::response::Body<M> where
M: Mapper<B>,
[src]
M: Mapper<B>,
impl<M, B> Mapper<Request<B>> for Path<M> where
M: Mapper<str>,
[src]
M: Mapper<str>,
impl<M, B> Mapper<Request<B>> for Query<M> where
M: Mapper<str>,
[src]
M: Mapper<str>,
impl<M, B> Mapper<Request<B>> for Method<M> where
M: Mapper<str>,
[src]
M: Mapper<str>,
impl<M, B> Mapper<Request<B>> for httptest::mappers::request::Body<M> where
B: ToOwned,
M: Mapper<B::Owned>,
[src]
B: ToOwned,
M: Mapper<B::Owned>,
impl<M, B> Mapper<Request<B>> for httptest::mappers::request::Headers<M> where
M: Mapper<[KV<str, [u8]>]>,
[src]
M: Mapper<[KV<str, [u8]>]>,
impl<M, B> Mapper<Response<B>> for httptest::mappers::response::Headers<M> where
M: Mapper<[KV<str, [u8]>]>,
[src]
M: Mapper<[KV<str, [u8]>]>,
impl<M, B> Mapper<Response<B>> for StatusCode<M> where
M: Mapper<u16>,
[src]
M: Mapper<u16>,
impl<M, E> Mapper<[E]> for Contains<M> where
M: Mapper<E, Out = bool>,
[src]
M: Mapper<E, Out = bool>,
impl<M, IN> Mapper<IN> for Not<M> where
M: Mapper<IN, Out = bool>,
IN: ?Sized,
[src]
M: Mapper<IN, Out = bool>,
IN: ?Sized,