pub struct Meta {
pub name: String,
pub slug: Option<String>,
pub author: Option<String>,
pub version: Option<String>,
pub description: Option<String>,
pub dark: Option<bool>,
}Expand description
Theme metadata (TOML section [theme]).
Fields§
§name: StringHuman-readable theme name.
slug: Option<String>URL-safe identifier for the theme.
Theme author name or contact.
version: Option<String>Semantic version string (e.g. "1.0.0").
description: Option<String>Short description of the theme.
dark: Option<bool>true for dark themes, false for light themes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meta
impl<'de> Deserialize<'de> for Meta
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 Meta
impl StructuralPartialEq for Meta
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnsafeUnpin for Meta
impl UnwindSafe for Meta
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