pub struct RequestPeerTypeChat {
pub creator: bool,
pub bot_participant: bool,
pub has_username: Option<bool>,
pub forum: Option<bool>,
pub user_admin_rights: Option<ChatAdminRights>,
pub bot_admin_rights: Option<ChatAdminRights>,
}Expand description
Generated from:
requestPeerTypeChat#c9f06e1b flags:# creator:flags.0?true bot_participant:flags.5?true has_username:flags.3?Bool forum:flags.4?Bool user_admin_rights:flags.1?ChatAdminRights bot_admin_rights:flags.2?ChatAdminRights = RequestPeerTypeFields§
§creator: bool§bot_participant: bool§has_username: Option<bool>§forum: Option<bool>§user_admin_rights: Option<ChatAdminRights>§bot_admin_rights: Option<ChatAdminRights>Trait Implementations§
Source§impl Clone for RequestPeerTypeChat
impl Clone for RequestPeerTypeChat
Source§fn clone(&self) -> RequestPeerTypeChat
fn clone(&self) -> RequestPeerTypeChat
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 RequestPeerTypeChat
impl Debug for RequestPeerTypeChat
Source§impl Deserializable for RequestPeerTypeChat
impl Deserializable for RequestPeerTypeChat
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<RequestPeerTypeChat> for RequestPeerType
impl From<RequestPeerTypeChat> for RequestPeerType
Source§fn from(x: RequestPeerTypeChat) -> Self
fn from(x: RequestPeerTypeChat) -> Self
Converts to this type from the input type.
Source§impl Identifiable for RequestPeerTypeChat
impl Identifiable for RequestPeerTypeChat
Source§const CONSTRUCTOR_ID: u32 = 0xc9f06e1b
const CONSTRUCTOR_ID: u32 = 0xc9f06e1b
The constructor ID as specified in the TL schema.
Source§impl PartialEq for RequestPeerTypeChat
impl PartialEq for RequestPeerTypeChat
Source§impl Serializable for RequestPeerTypeChat
impl Serializable for RequestPeerTypeChat
Source§impl TryFrom<RequestPeerType> for RequestPeerTypeChat
impl TryFrom<RequestPeerType> for RequestPeerTypeChat
Source§type Error = RequestPeerType
type Error = RequestPeerType
The type returned in the event of a conversion error.
impl StructuralPartialEq for RequestPeerTypeChat
Auto Trait Implementations§
impl Freeze for RequestPeerTypeChat
impl RefUnwindSafe for RequestPeerTypeChat
impl Send for RequestPeerTypeChat
impl Sync for RequestPeerTypeChat
impl Unpin for RequestPeerTypeChat
impl UnsafeUnpin for RequestPeerTypeChat
impl UnwindSafe for RequestPeerTypeChat
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