pub enum Update {
Show 37 variants
NewMessage(UpdateNewMessage),
EditMessage(UpdateEditMessage),
UpdateMessageId(UpdateMessageId),
DeleteMessages(UpdateDeleteMessages),
UpdateComposeAction(UpdateComposeAction),
UpdateUserStatus(UpdateUserStatus),
MessageAttachment(UpdateMessageAttachment),
UpdateReaction(UpdateReaction),
DeleteReaction(UpdateDeleteReaction),
ParticipantAdd(UpdateChatParticipantAdd),
ParticipantDelete(UpdateChatParticipantDelete),
NewChat(UpdateNewChat),
DeleteChat(UpdateDeleteChat),
SpaceMemberAdd(UpdateSpaceMemberAdd),
SpaceMemberDelete(UpdateSpaceMemberDelete),
JoinSpace(UpdateJoinSpace),
UpdateReadMaxId(UpdateReadMaxId),
UpdateUserSettings(UpdateUserSettings),
NewMessageNotification(UpdateNewMessageNotification),
MarkAsUnread(UpdateMarkAsUnread),
ChatSkipPts(UpdateChatSkipPts),
ChatHasNewUpdates(UpdateChatHasNewUpdates),
SpaceHasNewUpdates(UpdateSpaceHasNewUpdates),
SpaceMemberUpdate(UpdateSpaceMemberUpdate),
ChatVisibility(UpdateChatVisibility),
DialogArchived(UpdateDialogArchived),
ChatInfo(UpdateChatInfo),
PinnedMessages(UpdatePinnedMessages),
ChatMoved(UpdateChatMoved),
DialogNotificationSettings(UpdateDialogNotificationSettings),
ChatOpen(UpdateChatOpen),
MessageActionInvoked(UpdateMessageActionInvoked),
MessageActionAnswered(UpdateMessageActionAnswered),
ClearChatHistory(UpdateClearChatHistory),
BotPresence(UpdateBotPresence),
DialogFollowMode(UpdateDialogFollowMode),
UpdatedUser(UpdateUpdatedUser),
}Variants§
NewMessage(UpdateNewMessage)
this
EditMessage(UpdateEditMessage)
this
UpdateMessageId(UpdateMessageId)
DeleteMessages(UpdateDeleteMessages)
this
UpdateComposeAction(UpdateComposeAction)
UpdateUserStatus(UpdateUserStatus)
MessageAttachment(UpdateMessageAttachment)
this
UpdateReaction(UpdateReaction)
DeleteReaction(UpdateDeleteReaction)
ParticipantAdd(UpdateChatParticipantAdd)
this
ParticipantDelete(UpdateChatParticipantDelete)
this
NewChat(UpdateNewChat)
this
DeleteChat(UpdateDeleteChat)
this
SpaceMemberAdd(UpdateSpaceMemberAdd)
SpaceMemberDelete(UpdateSpaceMemberDelete)
this
JoinSpace(UpdateJoinSpace)
this
UpdateReadMaxId(UpdateReadMaxId)
UpdateUserSettings(UpdateUserSettings)
NewMessageNotification(UpdateNewMessageNotification)
MarkAsUnread(UpdateMarkAsUnread)
ChatSkipPts(UpdateChatSkipPts)
ChatHasNewUpdates(UpdateChatHasNewUpdates)
SpaceHasNewUpdates(UpdateSpaceHasNewUpdates)
SpaceMemberUpdate(UpdateSpaceMemberUpdate)
ChatVisibility(UpdateChatVisibility)
DialogArchived(UpdateDialogArchived)
ChatInfo(UpdateChatInfo)
PinnedMessages(UpdatePinnedMessages)
ChatMoved(UpdateChatMoved)
DialogNotificationSettings(UpdateDialogNotificationSettings)
ChatOpen(UpdateChatOpen)
MessageActionInvoked(UpdateMessageActionInvoked)
MessageActionAnswered(UpdateMessageActionAnswered)
ClearChatHistory(UpdateClearChatHistory)
BotPresence(UpdateBotPresence)
DialogFollowMode(UpdateDialogFollowMode)
UpdatedUser(UpdateUpdatedUser)
Implementations§
Source§impl Update
impl Update
Sourcepub fn merge<B>(
field: &mut Option<Update>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<Update>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Update
impl<'de> Deserialize<'de> for Update
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Update, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Update, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Update
impl Serialize for Update
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnsafeUnpin for Update
impl UnwindSafe for Update
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