[−][src]Enum rtdlib::types::ChatAction
Describes the different types of activity in a chat
Variants
Cancel(ChatActionCancel)
The user has cancelled the previous action
ChoosingContact(ChatActionChoosingContact)
The user is picking a contact to send
ChoosingLocation(ChatActionChoosingLocation)
The user is picking a location or venue to send
RecordingVideo(ChatActionRecordingVideo)
The user is recording a video
RecordingVideoNote(ChatActionRecordingVideoNote)
The user is recording a video note
RecordingVoiceNote(ChatActionRecordingVoiceNote)
The user is recording a voice note
StartPlayingGame(ChatActionStartPlayingGame)
The user has started to play a game
Typing(ChatActionTyping)
The user is typing a message
UploadingDocument(ChatActionUploadingDocument)
The user is uploading a document
UploadingPhoto(ChatActionUploadingPhoto)
The user is uploading a photo
UploadingVideo(ChatActionUploadingVideo)
The user is uploading a video
UploadingVideoNote(ChatActionUploadingVideoNote)
The user is uploading a video note
UploadingVoiceNote(ChatActionUploadingVoiceNote)
The user is uploading a voice note
Implementations
impl ChatAction
[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
[src]
pub fn is_cancel(&self) -> bool
[src]
pub fn is_choosing_contact(&self) -> bool
[src]
pub fn is_choosing_location(&self) -> bool
[src]
pub fn is_recording_video(&self) -> bool
[src]
pub fn is_recording_video_note(&self) -> bool
[src]
pub fn is_recording_voice_note(&self) -> bool
[src]
pub fn is_start_playing_game(&self) -> bool
[src]
pub fn is_typing(&self) -> bool
[src]
pub fn is_uploading_document(&self) -> bool
[src]
pub fn is_uploading_photo(&self) -> bool
[src]
pub fn is_uploading_video(&self) -> bool
[src]
pub fn is_uploading_video_note(&self) -> bool
[src]
pub fn is_uploading_voice_note(&self) -> bool
[src]
pub fn on_cancel<F: FnOnce(&ChatActionCancel)>(&self, fnc: F) -> &Self
[src]
pub fn on_choosing_contact<F: FnOnce(&ChatActionChoosingContact)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_choosing_location<F: FnOnce(&ChatActionChoosingLocation)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_recording_video<F: FnOnce(&ChatActionRecordingVideo)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_recording_video_note<F: FnOnce(&ChatActionRecordingVideoNote)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_recording_voice_note<F: FnOnce(&ChatActionRecordingVoiceNote)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_start_playing_game<F: FnOnce(&ChatActionStartPlayingGame)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_typing<F: FnOnce(&ChatActionTyping)>(&self, fnc: F) -> &Self
[src]
pub fn on_uploading_document<F: FnOnce(&ChatActionUploadingDocument)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_uploading_photo<F: FnOnce(&ChatActionUploadingPhoto)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_uploading_video<F: FnOnce(&ChatActionUploadingVideo)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_uploading_video_note<F: FnOnce(&ChatActionUploadingVideoNote)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_uploading_voice_note<F: FnOnce(&ChatActionUploadingVoiceNote)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn as_cancel(&self) -> Option<&ChatActionCancel>
[src]
pub fn as_choosing_contact(&self) -> Option<&ChatActionChoosingContact>
[src]
pub fn as_choosing_location(&self) -> Option<&ChatActionChoosingLocation>
[src]
pub fn as_recording_video(&self) -> Option<&ChatActionRecordingVideo>
[src]
pub fn as_recording_video_note(&self) -> Option<&ChatActionRecordingVideoNote>
[src]
pub fn as_recording_voice_note(&self) -> Option<&ChatActionRecordingVoiceNote>
[src]
pub fn as_start_playing_game(&self) -> Option<&ChatActionStartPlayingGame>
[src]
pub fn as_typing(&self) -> Option<&ChatActionTyping>
[src]
pub fn as_uploading_document(&self) -> Option<&ChatActionUploadingDocument>
[src]
pub fn as_uploading_photo(&self) -> Option<&ChatActionUploadingPhoto>
[src]
pub fn as_uploading_video(&self) -> Option<&ChatActionUploadingVideo>
[src]
pub fn as_uploading_video_note(&self) -> Option<&ChatActionUploadingVideoNote>
[src]
pub fn as_uploading_voice_note(&self) -> Option<&ChatActionUploadingVoiceNote>
[src]
pub fn cancel<T: AsRef<ChatActionCancel>>(t: T) -> Self
[src]
pub fn choosing_contact<T: AsRef<ChatActionChoosingContact>>(t: T) -> Self
[src]
pub fn choosing_location<T: AsRef<ChatActionChoosingLocation>>(t: T) -> Self
[src]
pub fn recording_video<T: AsRef<ChatActionRecordingVideo>>(t: T) -> Self
[src]
pub fn recording_video_note<T: AsRef<ChatActionRecordingVideoNote>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn recording_voice_note<T: AsRef<ChatActionRecordingVoiceNote>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn start_playing_game<T: AsRef<ChatActionStartPlayingGame>>(t: T) -> Self
[src]
pub fn typing<T: AsRef<ChatActionTyping>>(t: T) -> Self
[src]
pub fn uploading_document<T: AsRef<ChatActionUploadingDocument>>(t: T) -> Self
[src]
pub fn uploading_photo<T: AsRef<ChatActionUploadingPhoto>>(t: T) -> Self
[src]
pub fn uploading_video<T: AsRef<ChatActionUploadingVideo>>(t: T) -> Self
[src]
pub fn uploading_video_note<T: AsRef<ChatActionUploadingVideoNote>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn uploading_voice_note<T: AsRef<ChatActionUploadingVoiceNote>>(
t: T
) -> Self
[src]
t: T
) -> Self
Trait Implementations
impl AsRef<ChatAction> for ChatAction
[src]
fn as_ref(&self) -> &ChatAction
[src]
impl Clone for ChatAction
[src]
fn clone(&self) -> ChatAction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ChatAction
[src]
impl Default for ChatAction
[src]
impl<'de> Deserialize<'de> for ChatAction
[src]
fn deserialize<D>(deserializer: D) -> Result<ChatAction, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for ChatAction
[src]
impl Serialize for ChatAction
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,