pub struct TextScale {
pub caption: Option<TextScaleEntry>,
pub section_heading: Option<TextScaleEntry>,
pub dialog_title: Option<TextScaleEntry>,
pub display: Option<TextScaleEntry>,
}Expand description
A named text scale with four typographic roles.
Each field is an optional TextScaleEntry so that a partial overlay
can override only specific roles.
Fields§
§caption: Option<TextScaleEntry>Caption / small label text.
section_heading: Option<TextScaleEntry>Section heading text.
dialog_title: Option<TextScaleEntry>Dialog title text.
display: Option<TextScaleEntry>Large display / hero text.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextScale
impl<'de> Deserialize<'de> for TextScale
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
impl StructuralPartialEq for TextScale
Auto Trait Implementations§
impl Freeze for TextScale
impl RefUnwindSafe for TextScale
impl Send for TextScale
impl Sync for TextScale
impl Unpin for TextScale
impl UnsafeUnpin for TextScale
impl UnwindSafe for TextScale
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