warp::filters::body

Trait Decode

Source
trait Decode {
    const MIME: (Name<'static>, Name<'static>);
    const WITH_NO_CONTENT_TYPE: bool;

    // Required method
    fn decode<B: Buf, T: DeserializeOwned>(
        buf: B,
    ) -> Result<T, Box<dyn StdError + Send + Sync>>;
}

Required Associated Constants§

Source

const MIME: (Name<'static>, Name<'static>)

Source

const WITH_NO_CONTENT_TYPE: bool

Required Methods§

Source

fn decode<B: Buf, T: DeserializeOwned>( buf: B, ) -> Result<T, Box<dyn StdError + Send + Sync>>

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.

Implementors§

Source§

impl Decode for Form

Source§

const MIME: (Name<'static>, Name<'static>)

Source§

const WITH_NO_CONTENT_TYPE: bool = true

Source§

impl Decode for Json

Source§

const MIME: (Name<'static>, Name<'static>)

Source§

const WITH_NO_CONTENT_TYPE: bool = true