pub struct Text {
pub font_weight: Option<u16>,
pub font_style: HashSet<FontStyle>,
pub decorations: HashSet<TextDecoration>,
pub baseline_shift: Option<BaselineShift>,
pub value: String,
}Fields§
§font_weight: Option<u16>§font_style: HashSet<FontStyle>§decorations: HashSet<TextDecoration>§baseline_shift: Option<BaselineShift>§value: StringTrait 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
source§impl PartialEq<Text> for Text
impl PartialEq<Text> for Text
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin 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