Struct mdblog::PostHeaders [−][src]
pub struct PostHeaders {
pub created: DateTime<Local>,
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: DateTime<Local>
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
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 PostHeaders
impl Send for PostHeaders
impl Sync for PostHeaders
impl Unpin for PostHeaders
impl UnwindSafe for PostHeaders
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.