pub struct ViewData<'a> {
pub page: InertiaPage<'a>,
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<'a>§ssr_page: Option<InertiaSSRPage>§custom_props: Map<String, Value>Auto Trait Implementations§
impl<'a> Freeze for ViewData<'a>
impl<'a> RefUnwindSafe for ViewData<'a>
impl<'a> Send for ViewData<'a>
impl<'a> Sync for ViewData<'a>
impl<'a> Unpin for ViewData<'a>
impl<'a> UnwindSafe for ViewData<'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