pub enum MessageEntityKind {
Mention,
Hashtag,
BotCommand,
Url,
Email,
Bold,
Italic,
Code,
Pre,
TextLink(String),
TextMention(User),
// some variants omitted
}
Expand description
Kind of the entity.
Variants
Mention
Hashtag
BotCommand
Url
Email
Bold
Italic
Code
Pre
TextLink(String)
TextMention(User)
Trait Implementations
sourceimpl Clone for MessageEntityKind
impl Clone for MessageEntityKind
sourcefn clone(&self) -> MessageEntityKind
fn clone(&self) -> MessageEntityKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MessageEntityKind
impl Debug for MessageEntityKind
sourceimpl PartialEq<MessageEntityKind> for MessageEntityKind
impl PartialEq<MessageEntityKind> for MessageEntityKind
sourcefn eq(&self, other: &MessageEntityKind) -> bool
fn eq(&self, other: &MessageEntityKind) -> bool
sourceimpl PartialOrd<MessageEntityKind> for MessageEntityKind
impl PartialOrd<MessageEntityKind> for MessageEntityKind
sourcefn partial_cmp(&self, other: &MessageEntityKind) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageEntityKind) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl StructuralPartialEq for MessageEntityKind
Auto Trait Implementations
impl RefUnwindSafe for MessageEntityKind
impl Send for MessageEntityKind
impl Sync for MessageEntityKind
impl Unpin for MessageEntityKind
impl UnwindSafe for MessageEntityKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more