Struct rstml_component_axum::Html
source · pub struct Html<C>(pub C);
Tuple Fields§
§0: C
Implementations§
Trait Implementations§
source§impl<C: HtmlContent> From<C> for Html<C>
impl<C: HtmlContent> From<C> for Html<C>
source§impl<C: HtmlContent> HtmlContent for Html<C>
impl<C: HtmlContent> HtmlContent for Html<C>
source§fn fmt(self, formatter: &mut HtmlFormatter<'_>) -> Result
fn fmt(self, formatter: &mut HtmlFormatter<'_>) -> Result
Formats the content and writes it to the provided HtmlFormatter. Read more
source§fn write_to(self, buffer: &mut BytesMut) -> Result<(), Error>
fn write_to(self, buffer: &mut BytesMut) -> Result<(), Error>
Writes the formatted content to the provided byte buffer. Read more
source§impl<C: HtmlContent> IntoResponse for Html<C>
impl<C: HtmlContent> IntoResponse for Html<C>
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<C> Freeze for Html<C>where
C: Freeze,
impl<C> RefUnwindSafe for Html<C>where
C: RefUnwindSafe,
impl<C> Send for Html<C>where
C: Send,
impl<C> Sync for Html<C>where
C: Sync,
impl<C> Unpin for Html<C>where
C: Unpin,
impl<C> UnwindSafe for Html<C>where
C: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more