logo
pub struct Settings {
    pub site_url: String,
    pub site_name: String,
    pub site_motto: String,
    pub footer_note: String,
    pub media_dir: String,
    pub build_dir: String,
    pub theme: String,
    pub theme_root_dir: String,
    pub rebuild_interval: u8,
    pub posts_per_page: usize,
}
Expand description

blog setting

Fields

site_url: String

blog base url

site_name: String

blog site name

site_motto: String

blog site motto

footer_note: String

blog footer note

media_dir: String

blog media directory

build_dir: String

blog build root directory

theme: String

blog theme name

theme_root_dir: String

blog theme root directory

rebuild_interval: u8

blog rebuild interval

posts_per_page: usize

post count per index page

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Collect all configuration properties available from this source and return a HashMap. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.