pub struct ViewData {
pub page: InertiaPage,
pub ssr_page: Option<InertiaSSRPage>,
pub custom_props: Map<String, Value>,
}
Expand description
View Data is a struct containing props to be used by the root template.
Fields§
§page: InertiaPage
§ssr_page: Option<InertiaSSRPage>
§custom_props: Map<String, Value>
Auto Trait Implementations§
impl Freeze for ViewData
impl RefUnwindSafe for ViewData
impl Send for ViewData
impl Sync for ViewData
impl Unpin for ViewData
impl UnwindSafe for ViewData
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