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: String
The text.
is_bold: bool
true
if bold is applied to this string.
is_italic: bool
true
if italic is applied to this string.
is_strikethrough: bool
true
if strikethrough is applied to this string.
is_underline: bool
true
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 ==
.