Struct mdblog::Post [−][src]
pub struct Post {
pub path: PathBuf,
pub title: String,
pub url: PathBuf,
pub headers: PostHeaders,
pub content: String,
// some fields omitted
}
Expand description
blog post
every blog post is composed of head
part and body
part.
the two part is separated by the first blank line.
Fields
path: PathBuf
post path from relative root directory
title: String
the post title
url: PathBuf
the post url
headers: PostHeaders
post headers
content: String
post html body
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Post
impl UnwindSafe for Post
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.