pub enum RichText {
Show 29 variants
TextEmpty,
TextPlain(TextPlain),
TextBold(Box<TextBold>),
TextItalic(Box<TextItalic>),
TextUnderline(Box<TextUnderline>),
TextStrike(Box<TextStrike>),
TextFixed(Box<TextFixed>),
TextUrl(Box<TextUrl>),
TextEmail(Box<TextEmail>),
TextConcat(TextConcat),
TextSubscript(Box<TextSubscript>),
TextSuperscript(Box<TextSuperscript>),
TextMarked(Box<TextMarked>),
TextPhone(Box<TextPhone>),
TextImage(TextImage),
TextAnchor(Box<TextAnchor>),
TextMath(TextMath),
TextCustomEmoji(TextCustomEmoji),
TextSpoiler(Box<TextSpoiler>),
TextMention(Box<TextMention>),
TextHashtag(Box<TextHashtag>),
TextBotCommand(Box<TextBotCommand>),
TextCashtag(Box<TextCashtag>),
TextAutoUrl(Box<TextAutoUrl>),
TextAutoEmail(Box<TextAutoEmail>),
TextAutoPhone(Box<TextAutoPhone>),
TextBankCard(Box<TextBankCard>),
TextMentionName(Box<TextMentionName>),
TextDate(Box<TextDate>),
}Expand description
Variants§
TextEmpty
TextPlain(TextPlain)
TextBold(Box<TextBold>)
TextItalic(Box<TextItalic>)
TextUnderline(Box<TextUnderline>)
TextStrike(Box<TextStrike>)
TextFixed(Box<TextFixed>)
TextUrl(Box<TextUrl>)
TextEmail(Box<TextEmail>)
TextConcat(TextConcat)
TextSubscript(Box<TextSubscript>)
TextSuperscript(Box<TextSuperscript>)
TextMarked(Box<TextMarked>)
TextPhone(Box<TextPhone>)
TextImage(TextImage)
TextAnchor(Box<TextAnchor>)
TextMath(TextMath)
TextCustomEmoji(TextCustomEmoji)
TextSpoiler(Box<TextSpoiler>)
TextMention(Box<TextMention>)
TextHashtag(Box<TextHashtag>)
TextBotCommand(Box<TextBotCommand>)
TextCashtag(Box<TextCashtag>)
TextAutoUrl(Box<TextAutoUrl>)
TextAutoEmail(Box<TextAutoEmail>)
TextAutoPhone(Box<TextAutoPhone>)
TextBankCard(Box<TextBankCard>)
TextMentionName(Box<TextMentionName>)
TextDate(Box<TextDate>)
Trait Implementations§
Source§impl Deserializable for RichText
impl Deserializable for RichText
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<TextAnchor> for RichText
impl From<TextAnchor> for RichText
Source§fn from(x: TextAnchor) -> Self
fn from(x: TextAnchor) -> Self
Converts to this type from the input type.
Source§impl From<TextAutoEmail> for RichText
impl From<TextAutoEmail> for RichText
Source§fn from(x: TextAutoEmail) -> Self
fn from(x: TextAutoEmail) -> Self
Converts to this type from the input type.
Source§impl From<TextAutoPhone> for RichText
impl From<TextAutoPhone> for RichText
Source§fn from(x: TextAutoPhone) -> Self
fn from(x: TextAutoPhone) -> Self
Converts to this type from the input type.
Source§impl From<TextAutoUrl> for RichText
impl From<TextAutoUrl> for RichText
Source§fn from(x: TextAutoUrl) -> Self
fn from(x: TextAutoUrl) -> Self
Converts to this type from the input type.
Source§impl From<TextBankCard> for RichText
impl From<TextBankCard> for RichText
Source§fn from(x: TextBankCard) -> Self
fn from(x: TextBankCard) -> Self
Converts to this type from the input type.
Source§impl From<TextBotCommand> for RichText
impl From<TextBotCommand> for RichText
Source§fn from(x: TextBotCommand) -> Self
fn from(x: TextBotCommand) -> Self
Converts to this type from the input type.
Source§impl From<TextCashtag> for RichText
impl From<TextCashtag> for RichText
Source§fn from(x: TextCashtag) -> Self
fn from(x: TextCashtag) -> Self
Converts to this type from the input type.
Source§impl From<TextConcat> for RichText
impl From<TextConcat> for RichText
Source§fn from(x: TextConcat) -> Self
fn from(x: TextConcat) -> Self
Converts to this type from the input type.
Source§impl From<TextCustomEmoji> for RichText
impl From<TextCustomEmoji> for RichText
Source§fn from(x: TextCustomEmoji) -> Self
fn from(x: TextCustomEmoji) -> Self
Converts to this type from the input type.
Source§impl From<TextHashtag> for RichText
impl From<TextHashtag> for RichText
Source§fn from(x: TextHashtag) -> Self
fn from(x: TextHashtag) -> Self
Converts to this type from the input type.
Source§impl From<TextItalic> for RichText
impl From<TextItalic> for RichText
Source§fn from(x: TextItalic) -> Self
fn from(x: TextItalic) -> Self
Converts to this type from the input type.
Source§impl From<TextMarked> for RichText
impl From<TextMarked> for RichText
Source§fn from(x: TextMarked) -> Self
fn from(x: TextMarked) -> Self
Converts to this type from the input type.
Source§impl From<TextMention> for RichText
impl From<TextMention> for RichText
Source§fn from(x: TextMention) -> Self
fn from(x: TextMention) -> Self
Converts to this type from the input type.
Source§impl From<TextMentionName> for RichText
impl From<TextMentionName> for RichText
Source§fn from(x: TextMentionName) -> Self
fn from(x: TextMentionName) -> Self
Converts to this type from the input type.
Source§impl From<TextSpoiler> for RichText
impl From<TextSpoiler> for RichText
Source§fn from(x: TextSpoiler) -> Self
fn from(x: TextSpoiler) -> Self
Converts to this type from the input type.
Source§impl From<TextStrike> for RichText
impl From<TextStrike> for RichText
Source§fn from(x: TextStrike) -> Self
fn from(x: TextStrike) -> Self
Converts to this type from the input type.
Source§impl From<TextSubscript> for RichText
impl From<TextSubscript> for RichText
Source§fn from(x: TextSubscript) -> Self
fn from(x: TextSubscript) -> Self
Converts to this type from the input type.
Source§impl From<TextSuperscript> for RichText
impl From<TextSuperscript> for RichText
Source§fn from(x: TextSuperscript) -> Self
fn from(x: TextSuperscript) -> Self
Converts to this type from the input type.
Source§impl From<TextUnderline> for RichText
impl From<TextUnderline> for RichText
Source§fn from(x: TextUnderline) -> Self
fn from(x: TextUnderline) -> Self
Converts to this type from the input type.
Source§impl Serializable for RichText
impl Serializable for RichText
impl StructuralPartialEq for RichText
Source§impl TryFrom<RichText> for TextItalic
impl TryFrom<RichText> for TextItalic
Source§impl TryFrom<RichText> for TextUnderline
impl TryFrom<RichText> for TextUnderline
Source§impl TryFrom<RichText> for TextStrike
impl TryFrom<RichText> for TextStrike
Source§impl TryFrom<RichText> for TextConcat
impl TryFrom<RichText> for TextConcat
Source§impl TryFrom<RichText> for TextSubscript
impl TryFrom<RichText> for TextSubscript
Source§impl TryFrom<RichText> for TextSuperscript
impl TryFrom<RichText> for TextSuperscript
Source§impl TryFrom<RichText> for TextMarked
impl TryFrom<RichText> for TextMarked
Source§impl TryFrom<RichText> for TextAnchor
impl TryFrom<RichText> for TextAnchor
Source§impl TryFrom<RichText> for TextCustomEmoji
impl TryFrom<RichText> for TextCustomEmoji
Source§impl TryFrom<RichText> for TextSpoiler
impl TryFrom<RichText> for TextSpoiler
Source§impl TryFrom<RichText> for TextMention
impl TryFrom<RichText> for TextMention
Source§impl TryFrom<RichText> for TextHashtag
impl TryFrom<RichText> for TextHashtag
Source§impl TryFrom<RichText> for TextBotCommand
impl TryFrom<RichText> for TextBotCommand
Source§impl TryFrom<RichText> for TextCashtag
impl TryFrom<RichText> for TextCashtag
Source§impl TryFrom<RichText> for TextAutoUrl
impl TryFrom<RichText> for TextAutoUrl
Source§impl TryFrom<RichText> for TextAutoEmail
impl TryFrom<RichText> for TextAutoEmail
Source§impl TryFrom<RichText> for TextAutoPhone
impl TryFrom<RichText> for TextAutoPhone
Source§impl TryFrom<RichText> for TextBankCard
impl TryFrom<RichText> for TextBankCard
Source§impl TryFrom<RichText> for TextMentionName
impl TryFrom<RichText> for TextMentionName
Auto Trait Implementations§
impl Freeze for RichText
impl RefUnwindSafe for RichText
impl Send for RichText
impl Sync for RichText
impl Unpin for RichText
impl UnsafeUnpin for RichText
impl UnwindSafe for RichText
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