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

create new Post

the absolute path of blog post markdown file.

the absolute path of blog post html file.

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts self into a collection.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.