pub struct StylesStrutStyle {
pub debug_label: Option<String>,
pub font_family: Option<String>,
pub font_family_fallback: Vec<Value>,
pub font_size: Option<f64>,
pub font_weight: Option<String>,
pub force_strut_height: Option<bool>,
pub height: Option<f64>,
pub leading: Option<f64>,
pub leading_distribution: Option<StylesTextLeadingDistribution>,
}Expand description
Defines the strut of a text line.
Fields§
§debug_label: Option<String>A label to help identify this strut style.
font_family: Option<String>The font family to use for this strut style.
font_family_fallback: Vec<Value>A list of fallback font families to use for this strut style.
font_size: Option<f64>§font_weight: Option<String>The font weight to use for this strut style.
force_strut_height: Option<bool>Whether to force the strut height.
height: Option<f64>§leading: Option<f64>§leading_distribution: Option<StylesTextLeadingDistribution>Implementations§
Source§impl StylesStrutStyle
impl StylesStrutStyle
pub fn builder() -> StylesStrutStyle
Trait Implementations§
Source§impl Clone for StylesStrutStyle
impl Clone for StylesStrutStyle
Source§impl Debug for StylesStrutStyle
impl Debug for StylesStrutStyle
Source§impl<'de> Deserialize<'de> for StylesStrutStyle
impl<'de> Deserialize<'de> for StylesStrutStyle
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<&StylesStrutStyle> for StylesStrutStyle
impl From<&StylesStrutStyle> for StylesStrutStyle
Source§fn from(value: &StylesStrutStyle) -> Self
fn from(value: &StylesStrutStyle) -> Self
Converts to this type from the input type.
Source§impl From<StylesStrutStyle> for StylesStrutStyle
impl From<StylesStrutStyle> for StylesStrutStyle
Source§fn from(value: StylesStrutStyle) -> Self
fn from(value: StylesStrutStyle) -> Self
Converts to this type from the input type.
Source§impl Serialize for StylesStrutStyle
impl Serialize for StylesStrutStyle
Source§impl TryFrom<StylesStrutStyle> for StylesStrutStyle
impl TryFrom<StylesStrutStyle> for StylesStrutStyle
Auto Trait Implementations§
impl Freeze for StylesStrutStyle
impl RefUnwindSafe for StylesStrutStyle
impl Send for StylesStrutStyle
impl Sync for StylesStrutStyle
impl Unpin for StylesStrutStyle
impl UnsafeUnpin for StylesStrutStyle
impl UnwindSafe for StylesStrutStyle
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