pub struct SiteConfig {
pub domain: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub tagline: Option<String>,
pub theme: Option<String>,
pub accent: Option<String>,
pub font: Option<String>,
pub base_path: Option<String>,
pub properties: Vec<StyleProperty>,
}Expand description
Extracted site-level configuration from a ::site block.
Fields§
§domain: Option<String>§name: Option<String>§description: Option<String>§tagline: Option<String>§theme: Option<String>The palette’s designed-for hint (“light” | “dark”). NOT a pin: the rendered page follows the visitor’s stored choice, then the device theme — this hint only orders the no-preference fallback (BR-SITE-THEME).
accent: Option<String>§font: Option<String>§base_path: Option<String>The site’s serving prefix (e.g. /s/{slug}), used to scope the
visitor’s persisted theme choice per site on a shared origin. None
(standalone export on its own domain) scopes to /.
properties: Vec<StyleProperty>Trait 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
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