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