Enum telegram_bot::types::MessageType [−][src]
pub enum MessageType { Text(String), Audio(Audio), Voice(Voice), File(Document), Photo(Vec<PhotoSize>), Sticker(Sticker), Video(Video), Contact(Contact), Location(Location), NewChatParticipant(User), LeftChatParticipant(User), NewChatTitle(String), NewChatPhoto(Vec<PhotoSize>), DeleteChatPhoto, GroupChatCreated, SuperGroupChatCreated(GroupToSuperGroupMigration), ChannelChatCreated, }
Variants
Text(String)
Audio(Audio)
Voice(Voice)
File(Document)
Photo(Vec<PhotoSize>)
Sticker(Sticker)
Video(Video)
Contact(Contact)
Location(Location)
NewChatParticipant(User)
LeftChatParticipant(User)
NewChatTitle(String)
NewChatPhoto(Vec<PhotoSize>)
DeleteChatPhoto
GroupChatCreated
SuperGroupChatCreated(GroupToSuperGroupMigration)
ChannelChatCreated
Trait Implementations
impl Debug for MessageType
[src]
impl Debug for MessageType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for MessageType
[src]
impl PartialEq for MessageType
fn eq(&self, other: &MessageType) -> bool
[src]
fn eq(&self, other: &MessageType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MessageType) -> bool
[src]
fn ne(&self, other: &MessageType) -> bool
This method tests for !=
.
impl Clone for MessageType
[src]
impl Clone for MessageType
fn clone(&self) -> MessageType
[src]
fn clone(&self) -> MessageType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Decodable for MessageType
[src]
impl Decodable for MessageType
Auto Trait Implementations
impl Send for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Sync for MessageType