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