pub struct TextStylePatch {
pub bold: Option<bool>,
pub italic: Option<bool>,
pub font_size_pt: Option<f64>,
pub color: Option<String>,
pub font_family: Option<String>,
pub underline: Option<String>,
pub spacing_pt: Option<f64>,
pub baseline_pct: Option<f64>,
}Fields§
§bold: Option<bool>§italic: Option<bool>§font_size_pt: Option<f64>§color: Option<String>§font_family: Option<String>§underline: Option<String>§spacing_pt: Option<f64>§baseline_pct: Option<f64>Trait Implementations§
Source§impl Clone for TextStylePatch
impl Clone for TextStylePatch
Source§fn clone(&self) -> TextStylePatch
fn clone(&self) -> TextStylePatch
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 TextStylePatch
impl Debug for TextStylePatch
Source§impl Default for TextStylePatch
impl Default for TextStylePatch
Source§fn default() -> TextStylePatch
fn default() -> TextStylePatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextStylePatch
impl<'de> Deserialize<'de> for TextStylePatch
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 PartialEq for TextStylePatch
impl PartialEq for TextStylePatch
Source§impl Serialize for TextStylePatch
impl Serialize for TextStylePatch
impl StructuralPartialEq for TextStylePatch
Auto Trait Implementations§
impl Freeze for TextStylePatch
impl RefUnwindSafe for TextStylePatch
impl Send for TextStylePatch
impl Sync for TextStylePatch
impl Unpin for TextStylePatch
impl UnsafeUnpin for TextStylePatch
impl UnwindSafe for TextStylePatch
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