pub struct SiteConfig {
pub title: Option<String>,
pub base: String,
pub features: Features,
pub components: ComponentsConfig,
}Expand description
The whole resolved site config. Default == pre-P6 behaviour.
Fields§
§title: Option<String>Optional site title; when set, page <title> becomes "{page} — {title}"
(home page uses just title). When None, per-page titles are unchanged.
base: StringBase path for the deployed site (e.g. /docs). Empty = served at root
(unchanged behaviour). Prefixed onto every emitted asset/nav/wikilink URL
so a sub-path deployment resolves correctly (no <base> tag is used —
<base> only affects relative URLs, but our links are root-absolute).
features: Features§components: ComponentsConfigTrait Implementations§
Source§impl Clone for SiteConfig
impl Clone for SiteConfig
Source§fn clone(&self) -> SiteConfig
fn clone(&self) -> SiteConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SiteConfig
impl Debug for SiteConfig
Source§impl Default for SiteConfig
impl Default for SiteConfig
Source§fn default() -> SiteConfig
fn default() -> SiteConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SiteConfigwhere
SiteConfig: Default,
impl<'de> Deserialize<'de> for SiteConfigwhere
SiteConfig: Default,
Source§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
impl Eq for SiteConfig
Source§impl PartialEq for SiteConfig
impl PartialEq for SiteConfig
Source§fn eq(&self, other: &SiteConfig) -> bool
fn eq(&self, other: &SiteConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SiteConfig
Auto Trait Implementations§
impl Freeze for SiteConfig
impl RefUnwindSafe for SiteConfig
impl Send for SiteConfig
impl Sync for SiteConfig
impl Unpin for SiteConfig
impl UnsafeUnpin for SiteConfig
impl UnwindSafe for SiteConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.