pub struct PostHeaders {
pub created: OffsetDateTime,
pub hidden: bool,
pub tags: Vec<String>,
pub description: String,
pub title: String,
}
Expand description
blog post headers
the blog post headers is parsed using yaml format.
Fields§
§created: OffsetDateTime
post created local time, created: 1970-01-01T00:00:00+08:00
post hidden flag, hidden: true
, default false
post tags, tags: [hello, world]
, default []
description: String
post description
title: String
post title
Trait Implementations§
Source§impl Clone for PostHeaders
impl Clone for PostHeaders
Source§fn clone(&self) -> PostHeaders
fn clone(&self) -> PostHeaders
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 PostHeaders
impl Debug for PostHeaders
Source§impl<'de> Deserialize<'de> for PostHeaders
impl<'de> Deserialize<'de> for PostHeaders
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 PostHeaders
impl RefUnwindSafe for PostHeaders
impl Send for PostHeaders
impl Sync for PostHeaders
impl Unpin for PostHeaders
impl UnwindSafe for PostHeaders
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