pub enum ComponentKind<'a> {
Component,
Page {
path: Symbol,
params: Vec<(Symbol, &'a TypeExpr<'a>)>,
},
Store {
mode: StoreMode<'a>,
},
ErrorPage {
status: u16,
},
}Variants§
Component
Page
## Page /todos/:id (id: Int) — mounted at path; each :name binds a typed param.
Store
## Store Name [persisted as "key" | shared on "topic"].
ErrorPage
## Error page 404.
Trait Implementations§
Source§impl<'a> Clone for ComponentKind<'a>
impl<'a> Clone for ComponentKind<'a>
Source§fn clone(&self) -> ComponentKind<'a>
fn clone(&self) -> ComponentKind<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ComponentKind<'a>
impl<'a> RefUnwindSafe for ComponentKind<'a>
impl<'a> Send for ComponentKind<'a>
impl<'a> Sync for ComponentKind<'a>
impl<'a> Unpin for ComponentKind<'a>
impl<'a> UnsafeUnpin for ComponentKind<'a>
impl<'a> UnwindSafe for ComponentKind<'a>
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