[][src]Enum rust_tdlib::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]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,