pub struct InertiaSSRPage { /* private fields */ }
Expand description
Inertia Full Page response to be rendered inside the root template on the first request or on a full visit request.
Implementations§
Source§impl InertiaSSRPage
impl InertiaSSRPage
Sourcepub fn new(head: Vec<String>, body: String) -> Self
pub fn new(head: Vec<String>, body: String) -> Self
Instantiates a new InertiaSSRPage object. See InertiaSSRPage
struct docs for more
details of its usage.
§Arguments
head
- A stringified html of the content to be injected in the layout (given by template_path) head element (by innerHTML method).body
- A stringified html of the body to be injected in the Inertia’s div container in the layout.
pub fn get_head(&self) -> String
pub fn get_body(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InertiaSSRPage
impl<'de> Deserialize<'de> for InertiaSSRPage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InertiaSSRPage
impl RefUnwindSafe for InertiaSSRPage
impl Send for InertiaSSRPage
impl Sync for InertiaSSRPage
impl Unpin for InertiaSSRPage
impl UnwindSafe for InertiaSSRPage
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