pub struct HtmlOptions {
pub accent: String,
pub by_affiliation: bool,
pub unaffiliated_label: String,
pub custom_themes: Vec<Theme>,
pub theme_order: Vec<String>,
pub default_theme: Option<String>,
pub lock_theme: bool,
}Fields§
§accent: String§by_affiliation: bool§unaffiliated_label: String§custom_themes: Vec<Theme>Custom themes to register in the page (built-ins live in the template).
theme_order: Vec<String>Theme ids to offer in the menu, in order.
default_theme: Option<String>Initial theme id; None follows the OS light/dark preference. A saved
choice in localStorage still wins.
lock_theme: boolHide the theme switcher and pin the page to one theme.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HtmlOptions
impl RefUnwindSafe for HtmlOptions
impl Send for HtmlOptions
impl Sync for HtmlOptions
impl Unpin for HtmlOptions
impl UnsafeUnpin for HtmlOptions
impl UnwindSafe for HtmlOptions
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