pub struct TextTheme {
pub font_family: String,
pub font_size: f32,
pub color: String,
pub font_weight: String,
}Expand description
文本主题配置
Fields§
§font_family: String字体族
font_size: f32字体大小
color: String字体颜色
font_weight: String字体粗细
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 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