pub struct ThemeIcons {Show 15 fields
pub success: &'static str,
pub failure: &'static str,
pub warning: &'static str,
pub info: &'static str,
pub arrow_right: &'static str,
pub arrow_left: &'static str,
pub bullet: &'static str,
pub lock: &'static str,
pub unlock: &'static str,
pub http: &'static str,
pub loading: &'static str,
pub route: &'static str,
pub database: &'static str,
pub time: &'static str,
pub size: &'static str,
}Expand description
Icons used throughout the theme for visual feedback.
Provides both Unicode icons and ASCII fallbacks for terminals that don’t support extended Unicode characters.
§Example
use fastapi_output::themes::ThemeIcons;
let icons = ThemeIcons::unicode();
println!("{} Success!", icons.success);
// For older terminals
let ascii = ThemeIcons::ascii();
println!("{} Success!", ascii.success);Fields§
§success: &'static strSuccess indicator (e.g., checkmark).
failure: &'static strFailure/error indicator (e.g., X).
warning: &'static strWarning indicator.
info: &'static strInfo indicator.
arrow_right: &'static strRight arrow for flow indication.
arrow_left: &'static strLeft arrow.
bullet: &'static strBullet point.
lock: &'static strLock/security indicator.
unlock: &'static strUnlock indicator.
http: &'static strHTTP indicator.
loading: &'static strLoading/in-progress indicator.
route: &'static strRoute/path indicator.
database: &'static strDatabase/storage indicator.
time: &'static strTime/clock indicator.
size: &'static strSize/memory indicator.
Implementations§
Source§impl ThemeIcons
impl ThemeIcons
Sourcepub const fn unicode() -> Self
pub const fn unicode() -> Self
Create icons using Unicode characters.
Recommended for modern terminals with good Unicode support.
Sourcepub const fn ascii() -> Self
pub const fn ascii() -> Self
Create icons using ASCII-only characters.
Use for terminals without Unicode support or when consistent character widths are required.
Trait Implementations§
Source§impl Clone for ThemeIcons
impl Clone for ThemeIcons
Source§fn clone(&self) -> ThemeIcons
fn clone(&self) -> ThemeIcons
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 ThemeIcons
impl Debug for ThemeIcons
Source§impl Default for ThemeIcons
impl Default for ThemeIcons
Source§impl PartialEq for ThemeIcons
impl PartialEq for ThemeIcons
impl Eq for ThemeIcons
impl StructuralPartialEq for ThemeIcons
Auto Trait Implementations§
impl Freeze for ThemeIcons
impl RefUnwindSafe for ThemeIcons
impl Send for ThemeIcons
impl Sync for ThemeIcons
impl Unpin for ThemeIcons
impl UnwindSafe for ThemeIcons
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