pub trait MakeFmt<T> {
    type Target;

    // Required method
    fn make(&self, source: T) -> Self::Target;
}
Expand description

A standard interface for taking some component of the HTTP request/response and transforming it into new struct which enjoys Debug or Display. This allows for polymorphism over formatting approaches.

Required Associated Types§

source

type Target

Target of the fmt transformation.

Required Methods§

source

fn make(&self, source: T) -> Self::Target

Transforms a source into a target, altering it’s Display or Debug implementation.

Implementations on Foreign Types§

source§

impl<'a, T, U> MakeFmt<T> for &'a U
where U: MakeFmt<T>,

§

type Target = <U as MakeFmt<T>>::Target

source§

fn make(&self, source: T) -> Self::Target

Implementors§

source§

impl<'a, F> MakeFmt<&'a str> for MakeLabel<F>
where F: Clone,

§

type Target = Label<'a, F>

source§

impl<'a, F> MakeFmt<&'a str> for MakeQuery<F>
where F: Clone,

§

type Target = Query<'a, F>

source§

impl<'a, F> MakeFmt<&'a HeaderMap> for MakeHeaders<F>
where F: Clone,

source§

impl<'a, Headers, StatusCode> MakeFmt<&'a HeaderMap> for ResponseFmt<Headers, StatusCode>
where Headers: MakeFmt<&'a HeaderMap>,

§

type Target = <Headers as MakeFmt<&'a HeaderMap>>::Target

source§

impl<'a, Headers, Uri> MakeFmt<&'a HeaderMap> for RequestFmt<Headers, Uri>
where Headers: MakeFmt<&'a HeaderMap>,

§

type Target = <Headers as MakeFmt<&'a HeaderMap>>::Target

source§

impl<'a, Headers, Uri> MakeFmt<&'a Uri> for RequestFmt<Headers, Uri>
where Uri: MakeFmt<&'a Uri>,

§

type Target = <Uri as MakeFmt<&'a Uri>>::Target

source§

impl<'a, P, Q> MakeFmt<&'a Uri> for MakeUri<P, Q>
where Q: Clone, P: Clone,

§

type Target = SensitiveUri<'a, P, Q>

source§

impl<Headers, StatusCode> MakeFmt<StatusCode> for ResponseFmt<Headers, StatusCode>
where StatusCode: MakeFmt<StatusCode>,

§

type Target = <StatusCode as MakeFmt<StatusCode>>::Target

source§

impl<T> MakeFmt<T> for MakeSensitive

source§

impl<T> MakeFmt<T> for MakeIdentity

§

type Target = T