pub trait PayloadDetect { fn detect(_: &Mime) -> bool { ... } }
Payload Content Type Detection
fn detect(_: &Mime) -> bool
Detects the request’s content-type
impl PayloadDetect for Form
impl PayloadDetect for Json
impl PayloadDetect for Multipart