pub enum EntityKind {
Bold,
Italic,
Underline,
Strikethrough,
Spoiler,
Code,
Pre {
language: Option<String>,
},
TextLink {
url: String,
},
TextMention {
user_id: i64,
},
CustomEmoji {
custom_emoji_id: String,
},
Blockquote,
ExpandableBlockquote,
}Expand description
The kind of a message entity, including any data it carries.
Variants§
Bold
Bold text.
Italic
Italic text.
Underline
Underlined text.
Strikethrough
Struck through text.
Spoiler
Text hidden behind a spoiler.
Code
Monospaced inline code.
Pre
A preformatted block, optionally tagged with a language for highlighting.
Telegram documents that this entity cannot be nested inside other entities, which is why the builder only exposes it at the top level.
TextLink
Text which links to a URL.
TextMention
Text which mentions a user who has no username.
CustomEmoji
An inline custom emoji sticker.
Blockquote
A block quotation.
ExpandableBlockquote
A block quotation which is collapsed by default.
Trait Implementations§
Source§impl Clone for EntityKind
impl Clone for EntityKind
Source§fn clone(&self) -> EntityKind
fn clone(&self) -> EntityKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EntityKind
impl Debug for EntityKind
impl Eq for EntityKind
Source§impl PartialEq for EntityKind
impl PartialEq for EntityKind
impl StructuralPartialEq for EntityKind
Auto Trait Implementations§
impl Freeze for EntityKind
impl RefUnwindSafe for EntityKind
impl Send for EntityKind
impl Sync for EntityKind
impl Unpin for EntityKind
impl UnsafeUnpin for EntityKind
impl UnwindSafe for EntityKind
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