pub trait Sensitivity {
type RequestFmt: for<'a> MakeDebug<&'a HeaderMap> + for<'a> MakeDisplay<&'a Uri>;
type ResponseFmt: for<'a> MakeDebug<&'a HeaderMap> + MakeDisplay<StatusCode>;
// Required methods
fn request_fmt() -> Self::RequestFmt;
fn response_fmt() -> Self::ResponseFmt;
}
Expand description
An interface for providing MakeDebug
and MakeDisplay
for Request
and
Response
.
Required Associated Types§
sourcetype RequestFmt: for<'a> MakeDebug<&'a HeaderMap> + for<'a> MakeDisplay<&'a Uri>
type RequestFmt: for<'a> MakeDebug<&'a HeaderMap> + for<'a> MakeDisplay<&'a Uri>
The MakeDebug
and MakeDisplay
for the request HeaderMap
and Uri
.
sourcetype ResponseFmt: for<'a> MakeDebug<&'a HeaderMap> + MakeDisplay<StatusCode>
type ResponseFmt: for<'a> MakeDebug<&'a HeaderMap> + MakeDisplay<StatusCode>
The MakeDebug
and MakeDisplay
for the response HeaderMap
and StatusCode
.
Required Methods§
sourcefn request_fmt() -> Self::RequestFmt
fn request_fmt() -> Self::RequestFmt
Returns the RequestFmt
.
sourcefn response_fmt() -> Self::ResponseFmt
fn response_fmt() -> Self::ResponseFmt
Returns the ResponseFmt
.
Object Safety§
This trait is not object safe.