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