pub struct Text {
pub family: String,
pub display_family: String,
pub caption: u32,
pub body: u32,
pub title: u32,
pub headline: u32,
pub display: u32,
pub label: Option<u32>,
pub subtitle: Option<u32>,
}Expand description
The type scale, in pixels: four sizes and one for big numbers. An empty
family uses Inter, which Mochi’s packages bring, or the system font
without it; an empty display_family keeps family.
Fields§
§family: String§display_family: StringFor the clocks, on the idle island and in the control center.
caption: u32Labels, metadata and fine print.
body: u32Everything else: rows, buttons, messages.
title: u32Card, track and section titles.
headline: u32Page titles.
display: u32Big numbers, like a clock.
label: Option<u32>Before 0.0.7’s scale: read as caption. Not sent to the UI.
subtitle: Option<u32>Before 0.0.7’s scale: read as body. Not sent to the UI.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Text
impl<'de> Deserialize<'de> for Text
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 Eq for Text
Source§impl JsonSchema for Text
impl JsonSchema for Text
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnsafeUnpin for Text
impl UnwindSafe for Text
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