[−][src]Trait tsukuyomi::output::Preset
A trait representing the preset for deriving the implementation of Responder
.
Associated Types
type Upgrade: Upgrade
type Error: Into<Error>
type Respond: Respond<Upgrade = Self::Upgrade, Error = Self::Error>
Required methods
Loading content...Implementors
impl<T> Preset<T> for Html where
T: Into<ResponseBody>,
[src]
T: Into<ResponseBody>,
type Upgrade = NeverUpgrade
type Error = Error
type Respond = HtmlRespond
fn respond(this: T) -> Self::Respond
[src]
impl<T> Preset<T> for Json where
T: Serialize,
[src]
T: Serialize,
type Upgrade = NeverUpgrade
type Error = Error
type Respond = JsonRespond<T>
fn respond(this: T) -> Self::Respond
[src]
impl<T> Preset<T> for JsonPretty where
T: Serialize,
[src]
T: Serialize,