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
sourceimpl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
sourcefn 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
sourceimpl Source for Settings
impl Source for Settings
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync>
sourcefn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
Collect all configuration properties available from this source and return
a HashMap. Read more
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
Auto Trait Implementations
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.