Trait warp::filters::body::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>>

Object Safety§

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