pub struct UpdateChatParticipantAdmin {
pub chat_id: i64,
pub user_id: i64,
pub is_admin: bool,
pub version: i32,
}Expand description
Generated from:
updateChatParticipantAdmin#d7ca61a2 chat_id:long user_id:long is_admin:Bool version:int = UpdateFields§
§chat_id: i64§user_id: i64§is_admin: bool§version: i32Trait Implementations§
Source§impl Clone for UpdateChatParticipantAdmin
impl Clone for UpdateChatParticipantAdmin
Source§fn clone(&self) -> UpdateChatParticipantAdmin
fn clone(&self) -> UpdateChatParticipantAdmin
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 UpdateChatParticipantAdmin
impl Debug for UpdateChatParticipantAdmin
Source§impl Deserializable for UpdateChatParticipantAdmin
impl Deserializable for UpdateChatParticipantAdmin
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<UpdateChatParticipantAdmin> for Update
impl From<UpdateChatParticipantAdmin> for Update
Source§fn from(x: UpdateChatParticipantAdmin) -> Self
fn from(x: UpdateChatParticipantAdmin) -> Self
Converts to this type from the input type.
Source§impl Identifiable for UpdateChatParticipantAdmin
impl Identifiable for UpdateChatParticipantAdmin
Source§const CONSTRUCTOR_ID: u32 = 0xd7ca61a2
const CONSTRUCTOR_ID: u32 = 0xd7ca61a2
The constructor ID as specified in the TL schema.
Source§impl TryFrom<Update> for UpdateChatParticipantAdmin
impl TryFrom<Update> for UpdateChatParticipantAdmin
impl StructuralPartialEq for UpdateChatParticipantAdmin
Auto Trait Implementations§
impl Freeze for UpdateChatParticipantAdmin
impl RefUnwindSafe for UpdateChatParticipantAdmin
impl Send for UpdateChatParticipantAdmin
impl Sync for UpdateChatParticipantAdmin
impl Unpin for UpdateChatParticipantAdmin
impl UnsafeUnpin for UpdateChatParticipantAdmin
impl UnwindSafe for UpdateChatParticipantAdmin
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