[][src]Enum rtdlib::types::ChatAction

pub enum ChatAction {
    Cancel(ChatActionCancel),
    ChoosingContact(ChatActionChoosingContact),
    ChoosingLocation(ChatActionChoosingLocation),
    RecordingVideo(ChatActionRecordingVideo),
    RecordingVideoNote(ChatActionRecordingVideoNote),
    RecordingVoiceNote(ChatActionRecordingVoiceNote),
    StartPlayingGame(ChatActionStartPlayingGame),
    Typing(ChatActionTyping),
    UploadingDocument(ChatActionUploadingDocument),
    UploadingPhoto(ChatActionUploadingPhoto),
    UploadingVideo(ChatActionUploadingVideo),
    UploadingVideoNote(ChatActionUploadingVideoNote),
    UploadingVoiceNote(ChatActionUploadingVoiceNote),
    // some variants omitted
}

Describes the different types of activity in a chat

Variants

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

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]

pub fn on_choosing_location<F: FnOnce(&ChatActionChoosingLocation)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_recording_video<F: FnOnce(&ChatActionRecordingVideo)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_recording_video_note<F: FnOnce(&ChatActionRecordingVideoNote)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_recording_voice_note<F: FnOnce(&ChatActionRecordingVoiceNote)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_start_playing_game<F: FnOnce(&ChatActionStartPlayingGame)>(
    &self,
    fnc: F
) -> &Self
[src]

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]

pub fn on_uploading_photo<F: FnOnce(&ChatActionUploadingPhoto)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_uploading_video<F: FnOnce(&ChatActionUploadingVideo)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_uploading_video_note<F: FnOnce(&ChatActionUploadingVideoNote)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_uploading_voice_note<F: FnOnce(&ChatActionUploadingVoiceNote)>(
    &self,
    fnc: F
) -> &Self
[src]

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]

pub fn recording_voice_note<T: AsRef<ChatActionRecordingVoiceNote>>(
    t: T
) -> Self
[src]

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]

pub fn uploading_voice_note<T: AsRef<ChatActionUploadingVoiceNote>>(
    t: T
) -> Self
[src]

Trait Implementations

impl AsRef<ChatAction> for ChatAction[src]

impl Clone for ChatAction[src]

impl Debug for ChatAction[src]

impl Default for ChatAction[src]

impl<'de> Deserialize<'de> for ChatAction[src]

impl RObject for ChatAction[src]

impl Serialize for ChatAction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.