Struct mdblog::Settings [−][src]
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
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Collect all configuration properties available from this source and return a HashMap. Read more
Auto Trait Implementations
impl RefUnwindSafe for Settings
impl UnwindSafe for Settings
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self
into a collection.