axum_codec::response

Trait IntoCodecResponse

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

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§