pub struct PageRegistration {
pub module_path: &'static str,
pub factory: fn() -> Box<dyn Component>,
}Expand description
Compile-time route registration entry emitted by #[page].
Fields§
§module_path: &'static strThe Rust module path of the page, e.g. "my_app::routes::about::page".
Used at startup to derive the HTTP route path.
factory: fn() -> Box<dyn Component>Factory that constructs a boxed Component instance.
Trait Implementations§
impl Collect for PageRegistration
Auto Trait Implementations§
impl Freeze for PageRegistration
impl RefUnwindSafe for PageRegistration
impl Send for PageRegistration
impl Sync for PageRegistration
impl Unpin for PageRegistration
impl UnsafeUnpin for PageRegistration
impl UnwindSafe for PageRegistration
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