Trait FromContent
interfacer_http
pub trait FromContent: Sized { type Err: Into<FromContentError>; fn from_content( data: Vec<u8>, content_type: &Mime ) -> Result<Self, Self::Err>; }
type Err: Into<FromContentError>
fn from_content(data: Vec<u8>, content_type: &Mime) -> Result<Self, Self::Err>
impl FromContent for ()
type Err = FromContentError
fn from_content(_data: Vec<u8>, _content_type: &Mime) -> Result<Self, Self::Err>