pub struct PhoneCallDiscarded {
pub need_rating: bool,
pub need_debug: bool,
pub video: bool,
pub id: i64,
pub reason: Option<PhoneCallDiscardReason>,
pub duration: Option<i32>,
}Expand description
Generated from:
phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true video:flags.6?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCallFields§
§need_rating: bool§need_debug: bool§video: bool§id: i64§reason: Option<PhoneCallDiscardReason>§duration: Option<i32>Trait Implementations§
Source§impl Clone for PhoneCallDiscarded
impl Clone for PhoneCallDiscarded
Source§fn clone(&self) -> PhoneCallDiscarded
fn clone(&self) -> PhoneCallDiscarded
Returns a duplicate 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 PhoneCallDiscarded
impl Debug for PhoneCallDiscarded
Source§impl Deserializable for PhoneCallDiscarded
impl Deserializable for PhoneCallDiscarded
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<PhoneCallDiscarded> for PhoneCall
impl From<PhoneCallDiscarded> for PhoneCall
Source§fn from(x: PhoneCallDiscarded) -> Self
fn from(x: PhoneCallDiscarded) -> Self
Converts to this type from the input type.
Source§impl Identifiable for PhoneCallDiscarded
impl Identifiable for PhoneCallDiscarded
Source§const CONSTRUCTOR_ID: u32 = 0x50ca4de1
const CONSTRUCTOR_ID: u32 = 0x50ca4de1
The constructor ID as specified in the TL schema.
Source§impl PartialEq for PhoneCallDiscarded
impl PartialEq for PhoneCallDiscarded
Source§impl Serializable for PhoneCallDiscarded
impl Serializable for PhoneCallDiscarded
Source§impl TryFrom<PhoneCall> for PhoneCallDiscarded
impl TryFrom<PhoneCall> for PhoneCallDiscarded
impl StructuralPartialEq for PhoneCallDiscarded
Auto Trait Implementations§
impl Freeze for PhoneCallDiscarded
impl RefUnwindSafe for PhoneCallDiscarded
impl Send for PhoneCallDiscarded
impl Sync for PhoneCallDiscarded
impl Unpin for PhoneCallDiscarded
impl UnsafeUnpin for PhoneCallDiscarded
impl UnwindSafe for PhoneCallDiscarded
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more