pub struct FontSelection {
pub aliases: Vec<String>,
pub font_id: Option<StableTextId>,
}Expand description
Deterministic font request: explicit ID wins, otherwise aliases are matched.
JSON schema
{
"description": "Deterministic font request: explicit ID wins, otherwise aliases are matched.",
"type": "object",
"required": [
"aliases"
],
"properties": {
"aliases": {
"type": "array",
"items": {
"type": "string"
}
},
"font_id": {
"$ref": "#/$defs/StableTextId"
}
},
"additionalProperties": false
}Fields§
§aliases: Vec<String>§font_id: Option<StableTextId>Trait Implementations§
Source§impl Clone for FontSelection
impl Clone for FontSelection
Source§fn clone(&self) -> FontSelection
fn clone(&self) -> FontSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FontSelection
impl Debug for FontSelection
Source§impl<'de> Deserialize<'de> for FontSelection
impl<'de> Deserialize<'de> for FontSelection
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 FontSelection
impl RefUnwindSafe for FontSelection
impl Send for FontSelection
impl Sync for FontSelection
impl Unpin for FontSelection
impl UnsafeUnpin for FontSelection
impl UnwindSafe for FontSelection
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