pub struct PreviewBlogEntry {
pub title: String,
pub date: NaiveDate,
pub desc: Option<String>,
pub slug: String,
pub tags: Vec<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
slug: String
The URL slug
Vec
of tags for this blog
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 PreviewBlogEntry
impl Clone for PreviewBlogEntry
Source§fn clone(&self) -> PreviewBlogEntry
fn clone(&self) -> PreviewBlogEntry
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 PreviewBlogEntry
impl Debug for PreviewBlogEntry
Source§impl<'de> Deserialize<'de> for PreviewBlogEntry
impl<'de> Deserialize<'de> for PreviewBlogEntry
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 PreviewBlogEntry
impl RefUnwindSafe for PreviewBlogEntry
impl Send for PreviewBlogEntry
impl Sync for PreviewBlogEntry
impl Unpin for PreviewBlogEntry
impl UnwindSafe for PreviewBlogEntry
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