pub enum ChatAction {
Typing,
UploadPhoto,
RecordVideo,
UploadVideo,
RecordAudio,
UploadAudio,
UploadDocument,
FindLocation,
}
Expand description
Strongly typed ChatAction. Instead of passing a String to the
chat_action
method, this is used.
Variants
Typing
UploadPhoto
RecordVideo
UploadVideo
RecordAudio
UploadAudio
UploadDocument
FindLocation
Trait Implementations
sourceimpl Clone for ChatAction
impl Clone for ChatAction
sourcefn clone(&self) -> ChatAction
fn clone(&self) -> ChatAction
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 ChatAction
impl Debug for ChatAction
sourceimpl PartialEq<ChatAction> for ChatAction
impl PartialEq<ChatAction> for ChatAction
sourcefn eq(&self, other: &ChatAction) -> bool
fn eq(&self, other: &ChatAction) -> bool
sourceimpl PartialOrd<ChatAction> for ChatAction
impl PartialOrd<ChatAction> for ChatAction
sourcefn partial_cmp(&self, other: &ChatAction) -> Option<Ordering>
fn partial_cmp(&self, other: &ChatAction) -> 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 moresourceimpl Serialize for ChatAction
impl Serialize for ChatAction
impl StructuralPartialEq for ChatAction
Auto Trait Implementations
impl RefUnwindSafe for ChatAction
impl Send for ChatAction
impl Sync for ChatAction
impl Unpin for ChatAction
impl UnwindSafe for ChatAction
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