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