Struct mdblog::Post

source ·
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

source

impl Post

the absolute path of blog post markdown file.

the absolute path of blog post html file.

Trait Implementations

source

impl Serialize for Post

Serialize this value into the given Serde serializer. Read more

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

source

impl<T> Any for Twhere
    T: 'static + ?Sized,

Gets the TypeId of self. Read more

impl<T, I> AsResult<T, I> for Twhere
    I: Input,

source

impl<T> Borrow<T> for Twhere
    T: ?Sized,

Immutably borrows from an owned value. Read more
source

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

Mutably borrows from an owned value. Read more
source

impl<T> From<T> for T

Returns the argument unchanged.

source

impl<T, U> Into<U> for Twhere
    U: From<T>,

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T> IntoCollection<T> for T

Converts self into a collection.
source

impl<T> Same<T> for T

Should always be Self
source

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

The type returned in the event of a conversion error.
Performs the conversion.
source

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

The type returned in the event of a conversion error.
Performs the conversion.

impl<T> Typeable for Twhere
    T: Any,

Get the TypeId of this object.

impl<V, T> VZip<V> for Twhere
    V: MultiLane<T>,