pub struct PageData {
pub path: String,
pub title: Option<String>,
pub content_type: Option<String>,
pub html: String,
pub raw_body: String,
pub frontmatter: HashMap<String, Value>,
}Expand description
Plugin-facing view of a page’s parsed content.
Fields§
§path: StringContent-relative path (e.g. “blog/hello.md”).
title: Option<String>Page title from frontmatter.
content_type: Option<String>Content type from frontmatter (e.g. “Blog Post”).
html: StringRendered HTML body.
raw_body: StringRaw Markdown body.
frontmatter: HashMap<String, Value>All frontmatter fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PageData
impl<'de> Deserialize<'de> for PageData
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 PageData
impl RefUnwindSafe for PageData
impl Send for PageData
impl Sync for PageData
impl Unpin for PageData
impl UnsafeUnpin for PageData
impl UnwindSafe for PageData
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