#[non_exhaustive]pub struct PresetInfo {
pub key: &'static str,
pub display_name: &'static str,
pub platforms: &'static [&'static str],
}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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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 presets offered
on every platform (material-3 and the community themes).
Trait Implementations§
Source§impl Clone for PresetInfo
impl Clone for PresetInfo
Source§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 Forget for PresetInfo
impl Freeze for PresetInfo
impl Move 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