Struct perseus::internal::PageDataPartial
source · pub struct PageDataPartial {
pub state: Value,
pub head: String,
}
Expand description
A version of PageData
that doesn’t contain the HTML content of the page.
This is designed for being to sent to the client as part of a subsequent
load, since the browser can render the HTML content of a page on its own.
Note that this still contains the <head>
.
Fields§
§state: Value
The state for hydration.
head: String
The string to interpolate into the document’s <head>
.
Trait Implementations§
source§impl Clone for PageDataPartial
impl Clone for PageDataPartial
source§fn clone(&self) -> PageDataPartial
fn clone(&self) -> PageDataPartial
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PageDataPartial
impl Debug for PageDataPartial
source§impl<'de> Deserialize<'de> for PageDataPartial
impl<'de> Deserialize<'de> for PageDataPartial
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 RefUnwindSafe for PageDataPartial
impl Send for PageDataPartial
impl Sync for PageDataPartial
impl Unpin for PageDataPartial
impl UnwindSafe for PageDataPartial
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