Struct blog_tools::high::HighBlogEntry
source · pub struct HighBlogEntry {
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: String
Title of the blog post
date: NaiveDate
Date published
desc: Option<String>
Description
html: String
The blog post HTML that would be included into a template
slug: String
The 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: String
Preview of the blogpost, useful for showing on index pages
Trait Implementations§
source§impl Clone for HighBlogEntry
impl Clone for HighBlogEntry
source§fn clone(&self) -> HighBlogEntry
fn clone(&self) -> HighBlogEntry
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 HighBlogEntry
impl Debug for HighBlogEntry
source§impl<'de> Deserialize<'de> for HighBlogEntry
impl<'de> Deserialize<'de> for HighBlogEntry
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 HighBlogEntry
impl RefUnwindSafe for HighBlogEntry
impl Send for HighBlogEntry
impl Sync for HighBlogEntry
impl Unpin for HighBlogEntry
impl UnwindSafe for HighBlogEntry
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