pub enum AttachMenuPeerType {
SameBotPm,
BotPm,
Pm,
Chat,
Broadcast,
}Expand description
Variants§
Trait Implementations§
Source§impl Clone for AttachMenuPeerType
impl Clone for AttachMenuPeerType
Source§fn clone(&self) -> AttachMenuPeerType
fn clone(&self) -> AttachMenuPeerType
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 AttachMenuPeerType
impl Debug for AttachMenuPeerType
Source§impl Deserializable for AttachMenuPeerType
impl Deserializable for AttachMenuPeerType
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<AttachMenuPeerTypeBotPm> for AttachMenuPeerType
impl From<AttachMenuPeerTypeBotPm> for AttachMenuPeerType
Source§fn from(_x: AttachMenuPeerTypeBotPm) -> Self
fn from(_x: AttachMenuPeerTypeBotPm) -> Self
Converts to this type from the input type.
Source§impl From<AttachMenuPeerTypeBroadcast> for AttachMenuPeerType
impl From<AttachMenuPeerTypeBroadcast> for AttachMenuPeerType
Source§fn from(_x: AttachMenuPeerTypeBroadcast) -> Self
fn from(_x: AttachMenuPeerTypeBroadcast) -> Self
Converts to this type from the input type.
Source§impl From<AttachMenuPeerTypeChat> for AttachMenuPeerType
impl From<AttachMenuPeerTypeChat> for AttachMenuPeerType
Source§fn from(_x: AttachMenuPeerTypeChat) -> Self
fn from(_x: AttachMenuPeerTypeChat) -> Self
Converts to this type from the input type.
Source§impl From<AttachMenuPeerTypePm> for AttachMenuPeerType
impl From<AttachMenuPeerTypePm> for AttachMenuPeerType
Source§fn from(_x: AttachMenuPeerTypePm) -> Self
fn from(_x: AttachMenuPeerTypePm) -> Self
Converts to this type from the input type.
Source§impl From<AttachMenuPeerTypeSameBotPm> for AttachMenuPeerType
impl From<AttachMenuPeerTypeSameBotPm> for AttachMenuPeerType
Source§fn from(_x: AttachMenuPeerTypeSameBotPm) -> Self
fn from(_x: AttachMenuPeerTypeSameBotPm) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AttachMenuPeerType
impl PartialEq for AttachMenuPeerType
Source§impl Serializable for AttachMenuPeerType
impl Serializable for AttachMenuPeerType
impl StructuralPartialEq for AttachMenuPeerType
Auto Trait Implementations§
impl Freeze for AttachMenuPeerType
impl RefUnwindSafe for AttachMenuPeerType
impl Send for AttachMenuPeerType
impl Sync for AttachMenuPeerType
impl Unpin for AttachMenuPeerType
impl UnsafeUnpin for AttachMenuPeerType
impl UnwindSafe for AttachMenuPeerType
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