pub struct Formatting {
pub bold: bool,
pub italics: bool,
pub strikethrough: bool,
pub underline: bool,
}
Expand description
Formatting data for a text segment.
Fields§
§bold: bool
Indicates whether the text is bold or not.
italics: bool
Indicates whether the text is italicized or not.
strikethrough: bool
Indicates whether the text is strikethrough or not.
underline: bool
Indicates whether the text is underlined or not.
Trait Implementations§
Source§impl Clone for Formatting
impl Clone for Formatting
Source§fn clone(&self) -> Formatting
fn clone(&self) -> Formatting
Returns a duplicate of the value. Read more
1.0.0 · 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 Formatting
impl Debug for Formatting
Source§impl From<Formatting> for Formatting
impl From<Formatting> for Formatting
Source§fn from(val: Formatting) -> Self
fn from(val: Formatting) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Formatting
impl PartialEq for Formatting
impl StructuralPartialEq for Formatting
Auto Trait Implementations§
impl Freeze for Formatting
impl RefUnwindSafe for Formatting
impl Send for Formatting
impl Sync for Formatting
impl Unpin for Formatting
impl UnwindSafe for Formatting
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