pub struct Page<'a, M: Render> {
pub status: u16,
pub title: &'a str,
pub description: &'a str,
pub shell: ShellKind<'a>,
pub main: M,
pub extra_css: &'a [&'a str],
pub extra_js: &'a [&'a str],
}Expand description
Typed page descriptor rendered into a full document or HTMX partial.
Fields§
§status: u16§title: &'a str§description: &'a str§shell: ShellKind<'a>§main: M§extra_css: &'a [&'a str]§extra_js: &'a [&'a str]Auto Trait Implementations§
impl<'a, M> Forget for Page<'a, M>
impl<'a, M> Freeze for Page<'a, M>
impl<'a, M> Move for Page<'a, M>
impl<'a, M> RefUnwindSafe for Page<'a, M>where
M: RefUnwindSafe,
impl<'a, M> Send for Page<'a, M>
impl<'a, M> Sync for Page<'a, M>where
M: Sync,
impl<'a, M> Unpin for Page<'a, M>
impl<'a, M> UnsafeUnpin for Page<'a, M>where
&'a str: UnsafeUnpin,
&'static str: UnsafeUnpin,
&'a [NavTab<'a>]: UnsafeUnpin,
M: UnsafeUnpin,
&'a [&'a str]: UnsafeUnpin,
impl<'a, M> UnwindSafe for Page<'a, M>where
&'a str: UnwindSafe,
&'static str: UnwindSafe,
&'a [NavTab<'a>]: UnwindSafe,
M: UnwindSafe,
&'a [&'a str]: 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