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)
Implementations§
Source§impl Updates
impl Updates
Sourcepub fn media_unread(&self) -> Option<&bool>
pub fn media_unread(&self) -> Option<&bool>
Returns media_unread if present in this variant.
Sourcepub fn fwd_from(&self) -> Option<&MessageFwdHeader>
pub fn fwd_from(&self) -> Option<&MessageFwdHeader>
Returns fwd_from if present in this variant.
Sourcepub fn via_bot_id(&self) -> Option<&i64>
pub fn via_bot_id(&self) -> Option<&i64>
Returns via_bot_id if present in this variant.
Sourcepub fn reply_to(&self) -> Option<&MessageReplyHeader>
pub fn reply_to(&self) -> Option<&MessageReplyHeader>
Returns reply_to if present in this variant.
Sourcepub fn entities(&self) -> Option<&Vec<MessageEntity>>
pub fn entities(&self) -> Option<&Vec<MessageEntity>>
Returns entities if present in this variant.
Sourcepub fn ttl_period(&self) -> Option<&i32>
pub fn ttl_period(&self) -> Option<&i32>
Returns ttl_period if present in this variant.
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
impl StructuralPartialEq for Updates
Source§impl TryFrom<Updates> for UpdateShortMessage
impl TryFrom<Updates> for UpdateShortMessage
Source§impl TryFrom<Updates> for UpdateShortChatMessage
impl TryFrom<Updates> for UpdateShortChatMessage
Source§impl TryFrom<Updates> for UpdateShort
impl TryFrom<Updates> for UpdateShort
Source§impl TryFrom<Updates> for UpdatesCombined
impl TryFrom<Updates> for UpdatesCombined
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