pub struct ThemeSet {
pub all: Vec<Theme>,
pub custom: Vec<Theme>,
pub order: Vec<String>,
pub default: Option<String>,
pub lock: bool,
}Expand description
Themes plus the page’s menu configuration.
Fields§
§all: Vec<Theme>Every theme (built-ins first, then custom), used to resolve --theme.
custom: Vec<Theme>Just the custom themes, serialised into the page.
order: Vec<String>Theme ids to show in the menu, in order.
default: Option<String>Initial theme from the config (--theme still wins).
lock: boolHide the switcher and pin to a single theme.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThemeSet
impl RefUnwindSafe for ThemeSet
impl Send for ThemeSet
impl Sync for ThemeSet
impl Unpin for ThemeSet
impl UnsafeUnpin for ThemeSet
impl UnwindSafe for ThemeSet
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