pub struct StylesTextStyle {Show 16 fields
pub color: Option<StylesColor>,
pub decoration: Option<StylesTextDecoration>,
pub decoration_color: Option<StylesColor>,
pub decoration_style: Option<StylesTextDecorationStyle>,
pub decoration_thickness: Option<f64>,
pub font_family: Option<String>,
pub font_family_fallback: Vec<String>,
pub font_size: Option<f64>,
pub font_style: Option<StylesTextStyleFontStyle>,
pub font_weight: Option<StylesTextStyleFontWeight>,
pub height: Option<f64>,
pub letter_spacing: Option<f64>,
pub overflow: Option<StylesTextStyleOverflow>,
pub shadows: Vec<StylesBoxShadow>,
pub text_baseline: Option<StylesTextBaseline>,
pub word_spacing: Option<f64>,
}Expand description
The style of the Text.
Fields§
§color: Option<StylesColor>The color of the text.
decoration: Option<StylesTextDecoration>§decoration_color: Option<StylesColor>The color of the decoration.
decoration_style: Option<StylesTextDecorationStyle>§decoration_thickness: Option<f64>§font_family: Option<String>The font family of the text.
font_family_fallback: Vec<String>The list of font families to use if the first font family could not be found.
font_size: Option<f64>§font_style: Option<StylesTextStyleFontStyle>The style of the text.
font_weight: Option<StylesTextStyleFontWeight>The weight of the text.
height: Option<f64>§letter_spacing: Option<f64>§overflow: Option<StylesTextStyleOverflow>How visual text overflow should be handled.
shadows: Vec<StylesBoxShadow>A list of Shadows that will be painted underneath the text.
text_baseline: Option<StylesTextBaseline>The common baseline that should be aligned between this text and its parent text.
word_spacing: Option<f64>Implementations§
Source§impl StylesTextStyle
impl StylesTextStyle
pub fn builder() -> StylesTextStyle
Trait Implementations§
Source§impl Clone for StylesTextStyle
impl Clone for StylesTextStyle
Source§impl Debug for StylesTextStyle
impl Debug for StylesTextStyle
Source§impl<'de> Deserialize<'de> for StylesTextStyle
impl<'de> Deserialize<'de> for StylesTextStyle
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
Source§impl From<&StylesTextStyle> for StylesTextStyle
impl From<&StylesTextStyle> for StylesTextStyle
Source§fn from(value: &StylesTextStyle) -> Self
fn from(value: &StylesTextStyle) -> Self
Converts to this type from the input type.
Source§impl From<StylesTextStyle> for StylesTextStyle
impl From<StylesTextStyle> for StylesTextStyle
Source§fn from(value: StylesTextStyle) -> Self
fn from(value: StylesTextStyle) -> Self
Converts to this type from the input type.
Source§impl Serialize for StylesTextStyle
impl Serialize for StylesTextStyle
Source§impl TryFrom<StylesTextStyle> for StylesTextStyle
impl TryFrom<StylesTextStyle> for StylesTextStyle
Auto Trait Implementations§
impl Freeze for StylesTextStyle
impl RefUnwindSafe for StylesTextStyle
impl Send for StylesTextStyle
impl Sync for StylesTextStyle
impl Unpin for StylesTextStyle
impl UnsafeUnpin for StylesTextStyle
impl UnwindSafe for StylesTextStyle
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