pub enum InputMessage {
Id(InputMessageId),
ReplyTo(InputMessageReplyTo),
Pinned,
CallbackQuery(InputMessageCallbackQuery),
}Expand description
Variants§
Trait Implementations§
Source§impl Clone for InputMessage
impl Clone for InputMessage
Source§fn clone(&self) -> InputMessage
fn clone(&self) -> InputMessage
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 InputMessage
impl Debug for InputMessage
Source§impl Deserializable for InputMessage
impl Deserializable for InputMessage
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<InputMessageCallbackQuery> for InputMessage
impl From<InputMessageCallbackQuery> for InputMessage
Source§fn from(x: InputMessageCallbackQuery) -> Self
fn from(x: InputMessageCallbackQuery) -> Self
Converts to this type from the input type.
Source§impl From<InputMessageId> for InputMessage
impl From<InputMessageId> for InputMessage
Source§fn from(x: InputMessageId) -> Self
fn from(x: InputMessageId) -> Self
Converts to this type from the input type.
Source§impl From<InputMessagePinned> for InputMessage
impl From<InputMessagePinned> for InputMessage
Source§fn from(_x: InputMessagePinned) -> Self
fn from(_x: InputMessagePinned) -> Self
Converts to this type from the input type.
Source§impl From<InputMessageReplyTo> for InputMessage
impl From<InputMessageReplyTo> for InputMessage
Source§fn from(x: InputMessageReplyTo) -> Self
fn from(x: InputMessageReplyTo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputMessage
impl PartialEq for InputMessage
Source§impl Serializable for InputMessage
impl Serializable for InputMessage
Source§impl TryFrom<InputMessage> for InputMessageCallbackQuery
impl TryFrom<InputMessage> for InputMessageCallbackQuery
Source§type Error = InputMessage
type Error = InputMessage
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMessage> for InputMessageId
impl TryFrom<InputMessage> for InputMessageId
Source§type Error = InputMessage
type Error = InputMessage
The type returned in the event of a conversion error.
Source§impl TryFrom<InputMessage> for InputMessageReplyTo
impl TryFrom<InputMessage> for InputMessageReplyTo
Source§type Error = InputMessage
type Error = InputMessage
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputMessage
Auto Trait Implementations§
impl Freeze for InputMessage
impl RefUnwindSafe for InputMessage
impl Send for InputMessage
impl Sync for InputMessage
impl Unpin for InputMessage
impl UnsafeUnpin for InputMessage
impl UnwindSafe for InputMessage
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