pub struct BoundProps<P: PageProps> { /* private fields */ }Expand description
A props contract checked once against an immutable module. A development reload creates a new binding; an existing binding always projects through its own module.
Implementations§
Source§impl<P: PageProps> BoundProps<P>
impl<P: PageProps> BoundProps<P>
Sourcepub fn bind(module: Arc<IrModule>, route: &str) -> Result<Self, Vec<PropsError>>
pub fn bind(module: Arc<IrModule>, route: &str) -> Result<Self, Vec<PropsError>>
Derive and compare metadata once, retaining the exact module used at bind.
Sourcepub fn module(&self) -> &IrModule
pub fn module(&self) -> &IrModule
The verified module, also used for value projection and rendering.
Sourcepub fn module_arc(&self) -> &Arc<IrModule> ⓘ
pub fn module_arc(&self) -> &Arc<IrModule> ⓘ
Stable module identity for development reload detection.
Sourcepub fn warnings(&self) -> &[PropsWarning]
pub fn warnings(&self) -> &[PropsWarning]
Extra Rust fields reported once at bind.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for BoundProps<P>
impl<P> RefUnwindSafe for BoundProps<P>
impl<P> Send for BoundProps<P>
impl<P> Sync for BoundProps<P>
impl<P> Unpin for BoundProps<P>
impl<P> UnsafeUnpin for BoundProps<P>
impl<P> UnwindSafe for BoundProps<P>
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