pub struct PresetInfo {
pub key: &'static str,
pub display_name: &'static str,
pub platforms: &'static [&'static str],
pub light_only: bool,
}Expand description
Structured information about a bundled preset.
Returned by Theme::list_presets() and Theme::list_presets_for_platform()
to provide richer metadata than bare preset names.
Fields§
§key: &'static strMachine-readable preset key (e.g. "catppuccin-mocha", "kde-breeze").
Pass this to Theme::preset() to load the preset.
display_name: &'static strHuman-readable display name (e.g. "Catppuccin Mocha", "KDE Breeze").
platforms: &'static [&'static str]Target platform tags (e.g. &["linux-kde"]). Empty for community themes
that work on all platforms.
light_only: boolWhether the preset provides only a light variant (no dark variant).
Trait Implementations§
Source§impl Clone for PresetInfo
impl Clone for PresetInfo
Source§fn clone(&self) -> PresetInfo
fn clone(&self) -> PresetInfo
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 PresetInfo
impl Debug for PresetInfo
impl Eq for PresetInfo
Source§impl PartialEq for PresetInfo
impl PartialEq for PresetInfo
impl StructuralPartialEq for PresetInfo
Auto Trait Implementations§
impl Freeze for PresetInfo
impl RefUnwindSafe for PresetInfo
impl Send for PresetInfo
impl Sync for PresetInfo
impl Unpin for PresetInfo
impl UnsafeUnpin for PresetInfo
impl UnwindSafe for PresetInfo
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