Struct mdblog::PostHeaders
source · pub struct PostHeaders {
pub created: DateTime<Local>,
pub hidden: bool,
pub tags: Vec<String>,
pub description: 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
Trait Implementations
sourceimpl Clone for PostHeaders
impl Clone for PostHeaders
sourcefn clone(&self) -> PostHeaders
fn clone(&self) -> PostHeaders
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PostHeaders
impl Debug for PostHeaders
sourceimpl<'de> Deserialize<'de> for PostHeaders
impl<'de> Deserialize<'de> for PostHeaders
sourcefn 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
sourceimpl Serialize for PostHeaders
impl Serialize for PostHeaders
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.