pub struct SiteStyle {
pub theme: Option<ThemeAppearance>,
pub custom_css: Option<String>,
pub custom_favicon: Option<FaviconAsset>,
pub generator: Option<Generator>,
}Expand description
Caller-supplied appearance for the rendered site.
All fields are optional; an empty SiteStyle yields the built-in default
styling. Precedence:
- CSS:
custom_cssreplaces the stylesheet entirely; otherwise the bundled base CSS is used, withthemecolor overrides appended when present. - Favicon:
custom_faviconwins; otherwise the theme’s favicon (or its accent-derived default) is used; otherwise none. - Footer:
generatornames the tool that built the site, orNonefor no attribution line at all.
Fields§
§theme: Option<ThemeAppearance>Color theme (palette + optional favicon). None → default palette.
custom_css: Option<String>Fully custom stylesheet, replacing the built-in CSS entirely.
custom_favicon: Option<FaviconAsset>Custom favicon, overriding the theme/default favicon.
generator: Option<Generator>Who to credit in the site footer. None → no footer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SiteStyle
impl RefUnwindSafe for SiteStyle
impl Send for SiteStyle
impl Sync for SiteStyle
impl Unpin for SiteStyle
impl UnsafeUnpin for SiteStyle
impl UnwindSafe for SiteStyle
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