pub enum ThemePreset {
Default,
FastApi,
Neon,
Minimal,
Monokai,
Light,
Accessible,
}Expand description
Predefined theme presets.
Select a theme by name or environment variable.
Variants§
Default
Default FastAPI-inspired theme.
FastApi
Alias for Default - FastAPI-inspired theme.
Neon
Neon/cyberpunk high contrast theme.
Minimal
Minimal grayscale with accents.
Monokai
Monokai dark theme.
Light
Theme optimized for light terminal backgrounds.
Accessible
High-contrast, WCAG-compliant accessible theme.
Implementations§
Source§impl ThemePreset
impl ThemePreset
Sourcepub fn theme(&self) -> FastApiTheme
pub fn theme(&self) -> FastApiTheme
Get the FastApiTheme for this preset.
Sourcepub fn available_presets() -> &'static [&'static str]
pub fn available_presets() -> &'static [&'static str]
List all available preset names.
Trait Implementations§
Source§impl Clone for ThemePreset
impl Clone for ThemePreset
Source§fn clone(&self) -> ThemePreset
fn clone(&self) -> ThemePreset
Returns a duplicate of the value. Read more
1.0.0 · 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 ThemePreset
impl Debug for ThemePreset
Source§impl Default for ThemePreset
impl Default for ThemePreset
Source§fn default() -> ThemePreset
fn default() -> ThemePreset
Returns the “default value” for a type. Read more
Source§impl Display for ThemePreset
impl Display for ThemePreset
Source§impl FromStr for ThemePreset
impl FromStr for ThemePreset
Source§impl PartialEq for ThemePreset
impl PartialEq for ThemePreset
impl Copy for ThemePreset
impl Eq for ThemePreset
impl StructuralPartialEq for ThemePreset
Auto Trait Implementations§
impl Freeze for ThemePreset
impl RefUnwindSafe for ThemePreset
impl Send for ThemePreset
impl Sync for ThemePreset
impl Unpin for ThemePreset
impl UnsafeUnpin for ThemePreset
impl UnwindSafe for ThemePreset
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