pub struct TextStyle {
pub font_family: Option<String>,
pub font_size: Option<f32>,
pub font_weight: Option<FontWeight>,
pub color: Option<Color>,
pub line_height: Option<f32>,
pub letter_spacing: Option<f32>,
pub text_align: Option<TextAlign>,
}Fields§
§font_family: Option<String>§font_size: Option<f32>§font_weight: Option<FontWeight>§color: Option<Color>§line_height: Option<f32>§letter_spacing: Option<f32>§text_align: Option<TextAlign>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextStyle
impl<'de> Deserialize<'de> for TextStyle
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 TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin for TextStyle
impl UnwindSafe for TextStyle
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