Skip to main content

Page

Struct Page 

Source
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>
where &'a str: Freeze, &'static str: Freeze, &'a [NavTab<'a>]: Freeze, M: Freeze, &'a [&'a str]: Freeze,

§

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>
where M: Send, &'a str: Send, &'static str: Send, &'a [NavTab<'a>]: Send, &'a [&'a str]: Send,

§

impl<'a, M> Sync for Page<'a, M>
where M: Sync,

§

impl<'a, M> Unpin for Page<'a, M>
where M: Unpin, &'a str: Unpin, &'static str: Unpin, &'a [NavTab<'a>]: Unpin, &'a [&'a str]: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.