Struct tbot::util::entities::FormattedText[][src]

pub struct FormattedText {
    pub value: String,
    pub is_bold: bool,
    pub is_italic: bool,
    pub is_strikethrough: bool,
    pub is_underline: bool,
}

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

impl Clone for FormattedText[src]

impl Debug for FormattedText[src]

impl Hash for FormattedText[src]

impl PartialEq<FormattedText> for FormattedText[src]

impl Eq for FormattedText[src]

impl StructuralEq for FormattedText[src]

impl StructuralPartialEq for FormattedText[src]

Auto Trait Implementations

impl RefUnwindSafe for FormattedText

impl Send for FormattedText

impl Sync for FormattedText

impl Unpin for FormattedText

impl UnwindSafe for FormattedText

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.