pub trait IntoCodecResponse: OperationOutput {
// Required method
fn into_codec_response(self, content_type: ContentType) -> Response;
}Required Methods§
fn into_codec_response(self, content_type: ContentType) -> Response
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl IntoCodecResponse for &'static str
impl IntoCodecResponse for &'static str
fn into_codec_response(self, _ct: ContentType) -> Response
Source§impl IntoCodecResponse for &'static [u8]
impl IntoCodecResponse for &'static [u8]
fn into_codec_response(self, _ct: ContentType) -> Response
Source§impl IntoCodecResponse for Cow<'static, str>
impl IntoCodecResponse for Cow<'static, str>
fn into_codec_response(self, _ct: ContentType) -> Response
Source§impl IntoCodecResponse for Cow<'static, [u8]>
impl IntoCodecResponse for Cow<'static, [u8]>
fn into_codec_response(self, _ct: ContentType) -> Response
Source§impl IntoCodecResponse for ()
impl IntoCodecResponse for ()
fn into_codec_response(self, _ct: ContentType) -> Response
Source§impl IntoCodecResponse for String
impl IntoCodecResponse for String
fn into_codec_response(self, _ct: ContentType) -> Response
Source§impl IntoCodecResponse for Vec<u8>
impl IntoCodecResponse for Vec<u8>
fn into_codec_response(self, _ct: ContentType) -> Response
Source§impl IntoCodecResponse for Bytes
impl IntoCodecResponse for Bytes
fn into_codec_response(self, _ct: ContentType) -> Response
Source§impl IntoCodecResponse for StatusCode
impl IntoCodecResponse for StatusCode
fn into_codec_response(self, _ct: ContentType) -> Response
Source§impl<B> IntoCodecResponse for Response<B>
impl<B> IntoCodecResponse for Response<B>
fn into_codec_response(self, _ct: ContentType) -> Response
Source§impl<R> IntoCodecResponse for (StatusCode, R)where
R: IntoCodecResponse,
impl<R> IntoCodecResponse for (StatusCode, R)where
R: IntoCodecResponse,
fn into_codec_response(self, content_type: ContentType) -> Response
Source§impl<T, E> IntoCodecResponse for Result<T, E>where
T: IntoCodecResponse,
E: IntoCodecResponse,
impl<T, E> IntoCodecResponse for Result<T, E>where
T: IntoCodecResponse,
E: IntoCodecResponse,
fn into_codec_response(self, content_type: ContentType) -> Response
Implementors§
impl IntoCodecResponse for CodecRejection
Available on crate feature
pretty-errors only.impl<D> IntoCodecResponse for Codec<D>where
D: CodecEncode,
Self: OperationOutput,
Available on crate feature
aide only.