[][src]Enum rust_tdlib::types::CallDiscardReason

pub enum CallDiscardReason {
    Declined(CallDiscardReasonDeclined),
    Disconnected(CallDiscardReasonDisconnected),
    Empty(CallDiscardReasonEmpty),
    HungUp(CallDiscardReasonHungUp),
    Missed(CallDiscardReasonMissed),
    // some variants omitted
}

Describes the reason why a call was discarded

Variants

The call was ended before the conversation started. It was declined by the other party

The call was ended during the conversation because the users were disconnected

The call wasn't discarded, or the reason is unknown

The call was ended because one of the parties hung up

The call was ended before the conversation started. It was cancelled by the caller or missed by the other party

Implementations

impl CallDiscardReason[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

Trait Implementations

impl AsRef<CallDiscardReason> for CallDiscardReason[src]

impl Clone for CallDiscardReason[src]

impl Debug for CallDiscardReason[src]

impl Default for CallDiscardReason[src]

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

impl RObject for CallDiscardReason[src]

impl Serialize for CallDiscardReason[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>,