Struct blog_tools::BlogEntry
source · pub struct BlogEntry {
pub title: String,
pub date: NaiveDate,
pub desc: Option<String>,
pub html: String,
pub slug: String,
pub tags: Vec<String>,
pub toc: Option<String>,
pub keywords: Option<Vec<String>>,
pub canonical_link: Option<String>,
pub author_name: Option<String>,
pub author_webpage: Option<String>,
pub preview: String,
}Expand description
An individual blog post
Fields§
§title: StringTitle of the blog post
date: NaiveDateDate published
desc: Option<String>Description
html: StringThe blog post HTML that would be included into a template
slug: StringThe URL slug
Vec of tags for this blog
toc: Option<String>Table of contents
keywords: Option<Vec<String>>Optional Vec of keywords. Intended for SEO in comparison to tags
canonical_link: Option<String>Optional canonical link, intended for SEO
Optional author name
Optional URL for the author
preview: StringPreview of the blogpost, useful for showing on index pages
Trait Implementations§
source§impl<'de> Deserialize<'de> for BlogEntry
impl<'de> Deserialize<'de> for BlogEntry
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 BlogEntry
impl Send for BlogEntry
impl Sync for BlogEntry
impl Unpin for BlogEntry
impl UnwindSafe for BlogEntry
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