Enum rust_tdlib::types::CallDiscardReason
source · pub enum CallDiscardReason {
Declined(CallDiscardReasonDeclined),
Disconnected(CallDiscardReasonDisconnected),
Empty(CallDiscardReasonEmpty),
HungUp(CallDiscardReasonHungUp),
Missed(CallDiscardReasonMissed),
// some variants omitted
}
Expand description
Describes the reason why a call was discarded
Variants§
Declined(CallDiscardReasonDeclined)
The call was ended before the conversation started. It was declined by the other party
Disconnected(CallDiscardReasonDisconnected)
The call was ended during the conversation because the users were disconnected
Empty(CallDiscardReasonEmpty)
The call wasn’t discarded, or the reason is unknown
HungUp(CallDiscardReasonHungUp)
The call was ended because one of the parties hung up
Missed(CallDiscardReasonMissed)
The call was ended before the conversation started. It was canceled by the caller or missed by the other party
Implementations§
Trait Implementations§
source§impl AsRef<CallDiscardReason> for CallDiscardReason
impl AsRef<CallDiscardReason> for CallDiscardReason
source§fn as_ref(&self) -> &CallDiscardReason
fn as_ref(&self) -> &CallDiscardReason
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for CallDiscardReason
impl Clone for CallDiscardReason
source§fn clone(&self) -> CallDiscardReason
fn clone(&self) -> CallDiscardReason
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CallDiscardReason
impl Debug for CallDiscardReason
source§impl Default for CallDiscardReason
impl Default for CallDiscardReason
source§fn default() -> CallDiscardReason
fn default() -> CallDiscardReason
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CallDiscardReason
impl<'de> Deserialize<'de> for CallDiscardReason
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more