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: PathBufpost path from relative root directory
title: Stringthe post title
url: PathBufthe post url
headers: PostHeaderspost headers
content: Stringpost html body
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Post
impl RefUnwindSafe for Post
impl Send for Post
impl Sync for Post
impl Unpin for Post
impl UnwindSafe for Post
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