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