pub struct TextAnnotations {
pub bold: bool,
pub italic: bool,
pub strikethrough: bool,
pub underline: bool,
pub code: bool,
pub color: Option<String>,
}Expand description
TextAnnotations : Inline formatting flags for a RichTextObject.
Fields§
§bold: bool§italic: bool§strikethrough: bool§underline: bool§code: bool§color: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for TextAnnotations
impl Clone for TextAnnotations
Source§fn clone(&self) -> TextAnnotations
fn clone(&self) -> TextAnnotations
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 TextAnnotations
impl Debug for TextAnnotations
Source§impl Default for TextAnnotations
impl Default for TextAnnotations
Source§fn default() -> TextAnnotations
fn default() -> TextAnnotations
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextAnnotations
impl<'de> Deserialize<'de> for TextAnnotations
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 TextAnnotations
impl PartialEq for TextAnnotations
Source§fn eq(&self, other: &TextAnnotations) -> bool
fn eq(&self, other: &TextAnnotations) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextAnnotations
impl Serialize for TextAnnotations
impl StructuralPartialEq for TextAnnotations
Auto Trait Implementations§
impl Freeze for TextAnnotations
impl RefUnwindSafe for TextAnnotations
impl Send for TextAnnotations
impl Sync for TextAnnotations
impl Unpin for TextAnnotations
impl UnsafeUnpin for TextAnnotations
impl UnwindSafe for TextAnnotations
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