pub struct TextTheme {
pub font_family: String,
pub font_size: f32,
pub color: String,
pub font_weight: String,
}Expand description
Text theme configuration.
Fields§
§font_family: StringThe font family for text elements.
font_size: f32The font size in pixels.
color: StringThe default color for text (hex string).
font_weight: StringThe font weight (e.g., “normal”, “bold”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextTheme
impl<'de> Deserialize<'de> for TextTheme
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
Auto Trait Implementations§
impl Freeze for TextTheme
impl RefUnwindSafe for TextTheme
impl Send for TextTheme
impl Sync for TextTheme
impl Unpin for TextTheme
impl UnsafeUnpin for TextTheme
impl UnwindSafe for TextTheme
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