axum_codec::response

Trait IntoCodecResponse

source
pub trait IntoCodecResponse: OperationOutput {
    // Required method
    fn into_codec_response(self, content_type: ContentType) -> Response;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoCodecResponse for &'static str

source§

impl IntoCodecResponse for &'static [u8]

source§

impl IntoCodecResponse for Cow<'static, str>

source§

impl IntoCodecResponse for Cow<'static, [u8]>

source§

impl IntoCodecResponse for ()

source§

impl IntoCodecResponse for String

source§

impl IntoCodecResponse for Vec<u8>

source§

impl IntoCodecResponse for Bytes

source§

impl IntoCodecResponse for StatusCode

source§

impl<B> IntoCodecResponse for Response<B>
where B: HttpBody<Data = Bytes> + Send + 'static, B::Error: Into<BoxError>,

source§

impl<R> IntoCodecResponse for (StatusCode, R)

source§

impl<T, E> IntoCodecResponse for Result<T, E>

Implementors§