Struct tbot::util::entities::FormattedText
source · pub struct FormattedText {
pub value: String,
pub is_bold: bool,
pub is_italic: bool,
pub is_strikethrough: bool,
pub is_underline: bool,
}Expand description
Represents a string with formatting options.
Fields§
§value: StringThe text.
is_bold: booltrue if bold is applied to this string.
is_italic: booltrue if italic is applied to this string.
is_strikethrough: booltrue if strikethrough is applied to this string.
is_underline: booltrue if underline is applied to this string.
Trait Implementations§
source§impl Clone for FormattedText
impl Clone for FormattedText
source§fn clone(&self) -> FormattedText
fn clone(&self) -> FormattedText
Returns a copy 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 FormattedText
impl Debug for FormattedText
source§impl Hash for FormattedText
impl Hash for FormattedText
source§impl PartialEq<FormattedText> for FormattedText
impl PartialEq<FormattedText> for FormattedText
source§fn eq(&self, other: &FormattedText) -> bool
fn eq(&self, other: &FormattedText) -> bool
This method tests for
self and other values to be equal, and is used
by ==.