pub struct ChannelParticipantSelf {
pub via_request: bool,
pub user_id: i64,
pub inviter_id: i64,
pub date: i32,
pub subscription_until_date: Option<i32>,
pub rank: Option<String>,
}Expand description
Generated from:
channelParticipantSelf#a9478a1a flags:# via_request:flags.0?true user_id:long inviter_id:long date:int subscription_until_date:flags.1?int rank:flags.2?string = ChannelParticipantFields§
§via_request: bool§user_id: i64§inviter_id: i64§date: i32§subscription_until_date: Option<i32>§rank: Option<String>Trait Implementations§
Source§impl Clone for ChannelParticipantSelf
impl Clone for ChannelParticipantSelf
Source§fn clone(&self) -> ChannelParticipantSelf
fn clone(&self) -> ChannelParticipantSelf
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 ChannelParticipantSelf
impl Debug for ChannelParticipantSelf
Source§impl Deserializable for ChannelParticipantSelf
impl Deserializable for ChannelParticipantSelf
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<ChannelParticipantSelf> for ChannelParticipant
impl From<ChannelParticipantSelf> for ChannelParticipant
Source§fn from(x: ChannelParticipantSelf) -> Self
fn from(x: ChannelParticipantSelf) -> Self
Converts to this type from the input type.
Source§impl Identifiable for ChannelParticipantSelf
impl Identifiable for ChannelParticipantSelf
Source§const CONSTRUCTOR_ID: u32 = 0xa9478a1a
const CONSTRUCTOR_ID: u32 = 0xa9478a1a
The constructor ID as specified in the TL schema.
Source§impl PartialEq for ChannelParticipantSelf
impl PartialEq for ChannelParticipantSelf
Source§impl TryFrom<ChannelParticipant> for ChannelParticipantSelf
impl TryFrom<ChannelParticipant> for ChannelParticipantSelf
Source§type Error = ChannelParticipant
type Error = ChannelParticipant
The type returned in the event of a conversion error.
impl StructuralPartialEq for ChannelParticipantSelf
Auto Trait Implementations§
impl Freeze for ChannelParticipantSelf
impl RefUnwindSafe for ChannelParticipantSelf
impl Send for ChannelParticipantSelf
impl Sync for ChannelParticipantSelf
impl Unpin for ChannelParticipantSelf
impl UnsafeUnpin for ChannelParticipantSelf
impl UnwindSafe for ChannelParticipantSelf
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