pub enum Updates {
TooLong,
UpdateShortMessage(UpdateShortMessage),
UpdateShortChatMessage(UpdateShortChatMessage),
UpdateShort(UpdateShort),
Combined(UpdatesCombined),
Updates(Updates),
UpdateShortSentMessage(UpdateShortSentMessage),
}Expand description
Variants§
TooLong
UpdateShortMessage(UpdateShortMessage)
UpdateShortChatMessage(UpdateShortChatMessage)
UpdateShort(UpdateShort)
Combined(UpdatesCombined)
Updates(Updates)
UpdateShortSentMessage(UpdateShortSentMessage)
Trait Implementations§
Source§impl Deserializable for Updates
impl Deserializable for Updates
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<UpdateShort> for Updates
impl From<UpdateShort> for Updates
Source§fn from(x: UpdateShort) -> Self
fn from(x: UpdateShort) -> Self
Converts to this type from the input type.
Source§impl From<UpdateShortChatMessage> for Updates
impl From<UpdateShortChatMessage> for Updates
Source§fn from(x: UpdateShortChatMessage) -> Self
fn from(x: UpdateShortChatMessage) -> Self
Converts to this type from the input type.
Source§impl From<UpdateShortMessage> for Updates
impl From<UpdateShortMessage> for Updates
Source§fn from(x: UpdateShortMessage) -> Self
fn from(x: UpdateShortMessage) -> Self
Converts to this type from the input type.
Source§impl From<UpdateShortSentMessage> for Updates
impl From<UpdateShortSentMessage> for Updates
Source§fn from(x: UpdateShortSentMessage) -> Self
fn from(x: UpdateShortSentMessage) -> Self
Converts to this type from the input type.
Source§impl From<UpdatesCombined> for Updates
impl From<UpdatesCombined> for Updates
Source§fn from(x: UpdatesCombined) -> Self
fn from(x: UpdatesCombined) -> Self
Converts to this type from the input type.
Source§impl From<UpdatesTooLong> for Updates
impl From<UpdatesTooLong> for Updates
Source§fn from(_x: UpdatesTooLong) -> Self
fn from(_x: UpdatesTooLong) -> Self
Converts to this type from the input type.
Source§impl Serializable for Updates
impl Serializable for Updates
Source§impl TryFrom<Updates> for UpdateShort
impl TryFrom<Updates> for UpdateShort
Source§impl TryFrom<Updates> for UpdateShortChatMessage
impl TryFrom<Updates> for UpdateShortChatMessage
Source§impl TryFrom<Updates> for UpdateShortMessage
impl TryFrom<Updates> for UpdateShortMessage
Source§impl TryFrom<Updates> for UpdateShortSentMessage
impl TryFrom<Updates> for UpdateShortSentMessage
Source§impl TryFrom<Updates> for UpdatesCombined
impl TryFrom<Updates> for UpdatesCombined
impl StructuralPartialEq for Updates
Auto Trait Implementations§
impl Freeze for Updates
impl RefUnwindSafe for Updates
impl Send for Updates
impl Sync for Updates
impl Unpin for Updates
impl UnsafeUnpin for Updates
impl UnwindSafe for Updates
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