pub struct Post {
pub path: PathBuf,
pub title: String,
pub url: PathBuf,
pub headers: PostHeaders,
pub content: String,
/* private fields */
}
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 Send for Post
impl Sync for Post
impl Unpin for Post
impl UnwindSafe for Post
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.