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