pub struct FontSpec {
pub name: String,
pub size: f64,
pub bold: bool,
}Expand description
Font specification for a single report element.
Fieldsยง
ยงname: StringFont family name (e.g. โVerdanaโ).
size: f64Font size in points.
bold: boolWhether the font is bold.
Trait Implementationsยง
Sourceยงimpl<'de> Deserialize<'de> for FontSpec
impl<'de> Deserialize<'de> for FontSpec
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 FontSpec
impl RefUnwindSafe for FontSpec
impl Send for FontSpec
impl Sync for FontSpec
impl Unpin for FontSpec
impl UnsafeUnpin for FontSpec
impl UnwindSafe for FontSpec
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