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
sourceimpl AsRef<CallDiscardReason> for CallDiscardReason
impl AsRef<CallDiscardReason> for CallDiscardReason
sourcefn as_ref(&self) -> &CallDiscardReason
fn as_ref(&self) -> &CallDiscardReason
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for CallDiscardReason
impl Clone for CallDiscardReason
sourcefn clone(&self) -> CallDiscardReason
fn clone(&self) -> CallDiscardReason
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CallDiscardReason
impl Debug for CallDiscardReason
sourceimpl Default for CallDiscardReason
impl Default for CallDiscardReason
sourceimpl<'de> Deserialize<'de> for CallDiscardReason
impl<'de> Deserialize<'de> for CallDiscardReason
sourcefn 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
sourceimpl Serialize for CallDiscardReason
impl Serialize for CallDiscardReason
Auto Trait Implementations
impl RefUnwindSafe for CallDiscardReason
impl Send for CallDiscardReason
impl Sync for CallDiscardReason
impl Unpin for CallDiscardReason
impl UnwindSafe for CallDiscardReason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more