pub struct ColorElement {
pub value: String,
pub style: Option<RichTextStyle>,
/* private fields */
}Expand description
Fields§
§value: String§style: Option<RichTextStyle>Implementations§
Source§impl ColorElement
impl ColorElement
Trait Implementations§
Source§impl Clone for ColorElement
impl Clone for ColorElement
Source§impl Debug for ColorElement
impl Debug for ColorElement
Source§impl<'de> Deserialize<'de> for ColorElement
impl<'de> Deserialize<'de> for ColorElement
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 From<ColorElement> for RichTextElement
impl From<ColorElement> for RichTextElement
Source§fn from(value: ColorElement) -> Self
fn from(value: ColorElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ColorElement
impl PartialEq for ColorElement
Source§impl Serialize for ColorElement
impl Serialize for ColorElement
impl StructuralPartialEq for ColorElement
Auto Trait Implementations§
impl Freeze for ColorElement
impl RefUnwindSafe for ColorElement
impl Send for ColorElement
impl Sync for ColorElement
impl Unpin for ColorElement
impl UnsafeUnpin for ColorElement
impl UnwindSafe for ColorElement
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