pub struct RenderResult {
pub html: String,
pub css_head: String,
pub scripts: String,
}Expand description
Result of rendering a view with plugin support.
Contains the rendered HTML fragment plus CSS and JS tags collected from plugins used on the page.
Fields§
§html: StringThe rendered HTML fragment (same as render_to_html output).
css_head: StringCSS <link> tags to inject into <head>.
scripts: StringJS <script> tags and init scripts to inject before </body>.
Auto Trait Implementations§
impl Freeze for RenderResult
impl RefUnwindSafe for RenderResult
impl Send for RenderResult
impl Sync for RenderResult
impl Unpin for RenderResult
impl UnsafeUnpin for RenderResult
impl UnwindSafe for RenderResult
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