Struct axum::response::Html [−][src]
pub struct Html<T>(pub T);
Expand description
An HTML response.
Will automatically get Content-Type: text/html
.
Tuple Fields
0: T
Trait Implementations
Create a response.
Auto Trait Implementations
impl<T> RefUnwindSafe for Html<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Html<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
type Output = T
type Output = T
Should always be Self