pub struct PageProps {
pub path: String,
pub state: Option<String>,
pub global_state: Option<String>,
}
Expand description
The properties that every page will be initialized with. You shouldn’t ever need to interact with this unless you decide not to use the template macros.
Fields
path: String
The path it’s rendering at.
state: Option<String>
The state provided to the page. This will be Some(_)
if state was generated, we just can’t prove that to the compiler.
global_state: Option<String>
The global state, stringified. This will be Some(_)
if state was generated, we just can’t prove that to the compiler.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PageProps
impl Send for PageProps
impl Sync for PageProps
impl Unpin for PageProps
impl UnwindSafe for PageProps
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more