Enum rtdlib::types::Update [−][src]
Contains notifications about data changes
Variants
TestUseUpdate(TestUseUpdate)
Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization
ActiveNotifications(UpdateActiveNotifications)
Contains active notifications that was shown on previous application launches. This update is sent only if a message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update
AuthorizationState(UpdateAuthorizationState)
The user authorization state has changed
BasicGroup(UpdateBasicGroup)
Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the client
BasicGroupFullInfo(UpdateBasicGroupFullInfo)
Some data from basicGroupFullInfo has been changed
Call(UpdateCall)
New call was created or information about a call was updated
ChatDefaultDisableNotification(UpdateChatDefaultDisableNotification)
The value of the default disable_notification parameter, used when a message is sent to the chat, was changed
ChatDraftMessage(UpdateChatDraftMessage)
A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update shouldn't be applied
ChatIsMarkedAsUnread(UpdateChatIsMarkedAsUnread)
A chat was marked as unread or was read
ChatIsPinned(UpdateChatIsPinned)
A chat was pinned or unpinned
ChatIsSponsored(UpdateChatIsSponsored)
A chat's is_sponsored field has changed
ChatLastMessage(UpdateChatLastMessage)
The last message of a chat was changed. If last_message is null then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case
ChatNotificationSettings(UpdateChatNotificationSettings)
Notification settings for a chat were changed
ChatOnlineMemberCount(UpdateChatOnlineMemberCount)
The number of online group members has changed. This update with non-zero count is sent only for currently opened chats. There is no guarantee that it will be sent just after the count has changed
ChatOrder(UpdateChatOrder)
The order of the chat in the chat list has changed. Instead of this update updateChatLastMessage, updateChatIsPinned or updateChatDraftMessage might be sent
ChatPhoto(UpdateChatPhoto)
A chat photo was changed
ChatPinnedMessage(UpdateChatPinnedMessage)
The chat pinned message was changed
ChatReadInbox(UpdateChatReadInbox)
Incoming messages were read or number of unread messages has been changed
ChatReadOutbox(UpdateChatReadOutbox)
Outgoing messages were read
ChatReplyMarkup(UpdateChatReplyMarkup)
The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user
ChatTitle(UpdateChatTitle)
The title of a chat was changed
ChatUnreadMentionCount(UpdateChatUnreadMentionCount)
The chat unread_mention_count has changed
ConnectionState(UpdateConnectionState)
The connection state has changed
DeleteMessages(UpdateDeleteMessages)
Some messages were deleted
FavoriteStickers(UpdateFavoriteStickers)
The list of favorite stickers was updated
File(UpdateFile)
Information about a file was updated
FileGenerationStart(UpdateFileGenerationStart)
The file generation process needs to be started by the client
FileGenerationStop(UpdateFileGenerationStop)
File generation is no longer needed
HavePendingNotifications(UpdateHavePendingNotifications)
Describes, whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications
InstalledStickerSets(UpdateInstalledStickerSets)
The list of installed sticker sets was updated
LanguagePackStrings(UpdateLanguagePackStrings)
Some language pack strings have been updated
MessageContent(UpdateMessageContent)
The message content has changed
MessageContentOpened(UpdateMessageContentOpened)
The message content was opened. Updates voice note messages to "listened", video note messages to "viewed" and starts the TTL timer for self-destructing messages
MessageEdited(UpdateMessageEdited)
A message was edited. Changes in the message content will come in a separate updateMessageContent
MessageMentionRead(UpdateMessageMentionRead)
A message with an unread mention was read
MessageSendAcknowledged(UpdateMessageSendAcknowledged)
A request to send a message has reached the Telegram server. This doesn't mean that the message will be sent successfully or even that the send message request will be processed. This update will be sent only if the option "use_quick_ack" is set to true. This update may be sent multiple times for the same message
MessageSendFailed(UpdateMessageSendFailed)
A message failed to send. Be aware that some messages being sent can be irrecoverably deleted, in which case updateDeleteMessages will be received instead of this update
MessageSendSucceeded(UpdateMessageSendSucceeded)
A message has been successfully sent
MessageViews(UpdateMessageViews)
The view count of the message has changed
NewCallbackQuery(UpdateNewCallbackQuery)
A new incoming callback query; for bots only
NewChat(UpdateNewChat)
A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the client. The chat field changes will be reported through separate updates
NewChosenInlineResult(UpdateNewChosenInlineResult)
The user has chosen a result of an inline query; for bots only
NewCustomEvent(UpdateNewCustomEvent)
A new incoming event; for bots only
NewCustomQuery(UpdateNewCustomQuery)
A new incoming query; for bots only
NewInlineCallbackQuery(UpdateNewInlineCallbackQuery)
A new incoming callback query from a message sent via a bot; for bots only
NewInlineQuery(UpdateNewInlineQuery)
A new incoming inline query; for bots only
NewMessage(UpdateNewMessage)
A new message was received; can also be an outgoing message
NewPreCheckoutQuery(UpdateNewPreCheckoutQuery)
A new incoming pre-checkout query; for bots only. Contains full information about a checkout
NewShippingQuery(UpdateNewShippingQuery)
A new incoming shipping query; for bots only. Only for invoices with flexible price
Notification(UpdateNotification)
A notification was changed
NotificationGroup(UpdateNotificationGroup)
A list of active notifications in a notification group has changed
Option(UpdateOption)
An option changed its value
Poll(UpdatePoll)
Information about a poll was updated; for bots only
RecentStickers(UpdateRecentStickers)
The list of recently used stickers was updated
SavedAnimations(UpdateSavedAnimations)
The list of saved animations was updated
ScopeNotificationSettings(UpdateScopeNotificationSettings)
Notification settings for some type of chats were updated
SecretChat(UpdateSecretChat)
Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the client
ServiceNotification(UpdateServiceNotification)
Service notification from the server. Upon receiving this the client must show a popup with the content of the notification
Supergroup(UpdateSupergroup)
Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the client
SupergroupFullInfo(UpdateSupergroupFullInfo)
Some data from supergroupFullInfo has been changed
TermsOfService(UpdateTermsOfService)
New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method should be called with the reason "Decline ToS update"
TrendingStickerSets(UpdateTrendingStickerSets)
The list of trending sticker sets was updated or some of them were viewed
UnreadChatCount(UpdateUnreadChatCount)
Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if a message database is used
UnreadMessageCount(UpdateUnreadMessageCount)
Number of unread messages has changed. This update is sent only if a message database is used
User(UpdateUser)
Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the client
UserChatAction(UpdateUserChatAction)
User activity in the chat has changed
UserFullInfo(UpdateUserFullInfo)
Some data from userFullInfo has been changed
UserPrivacySettingRules(UpdateUserPrivacySettingRules)
Some privacy setting rules have been changed
UserStatus(UpdateUserStatus)
The user went online or offline
Implementations
impl Update
[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
[src]
pub fn is_test_use_update(&self) -> bool
[src]
pub fn is_active_notifications(&self) -> bool
[src]
pub fn is_authorization_state(&self) -> bool
[src]
pub fn is_basic_group(&self) -> bool
[src]
pub fn is_basic_group_full_info(&self) -> bool
[src]
pub fn is_call(&self) -> bool
[src]
pub fn is_chat_default_disable_notification(&self) -> bool
[src]
pub fn is_chat_draft_message(&self) -> bool
[src]
pub fn is_chat_is_marked_as_unread(&self) -> bool
[src]
pub fn is_chat_is_pinned(&self) -> bool
[src]
pub fn is_chat_is_sponsored(&self) -> bool
[src]
pub fn is_chat_last_message(&self) -> bool
[src]
pub fn is_chat_notification_settings(&self) -> bool
[src]
pub fn is_chat_online_member_count(&self) -> bool
[src]
pub fn is_chat_order(&self) -> bool
[src]
pub fn is_chat_photo(&self) -> bool
[src]
pub fn is_chat_pinned_message(&self) -> bool
[src]
pub fn is_chat_read_inbox(&self) -> bool
[src]
pub fn is_chat_read_outbox(&self) -> bool
[src]
pub fn is_chat_reply_markup(&self) -> bool
[src]
pub fn is_chat_title(&self) -> bool
[src]
pub fn is_chat_unread_mention_count(&self) -> bool
[src]
pub fn is_connection_state(&self) -> bool
[src]
pub fn is_delete_messages(&self) -> bool
[src]
pub fn is_favorite_stickers(&self) -> bool
[src]
pub fn is_file(&self) -> bool
[src]
pub fn is_file_generation_start(&self) -> bool
[src]
pub fn is_file_generation_stop(&self) -> bool
[src]
pub fn is_have_pending_notifications(&self) -> bool
[src]
pub fn is_installed_sticker_sets(&self) -> bool
[src]
pub fn is_language_pack_strings(&self) -> bool
[src]
pub fn is_message_content(&self) -> bool
[src]
pub fn is_message_content_opened(&self) -> bool
[src]
pub fn is_message_edited(&self) -> bool
[src]
pub fn is_message_mention_read(&self) -> bool
[src]
pub fn is_message_send_acknowledged(&self) -> bool
[src]
pub fn is_message_send_failed(&self) -> bool
[src]
pub fn is_message_send_succeeded(&self) -> bool
[src]
pub fn is_message_views(&self) -> bool
[src]
pub fn is_new_callback_query(&self) -> bool
[src]
pub fn is_new_chat(&self) -> bool
[src]
pub fn is_new_chosen_inline_result(&self) -> bool
[src]
pub fn is_new_custom_event(&self) -> bool
[src]
pub fn is_new_custom_query(&self) -> bool
[src]
pub fn is_new_inline_callback_query(&self) -> bool
[src]
pub fn is_new_inline_query(&self) -> bool
[src]
pub fn is_new_message(&self) -> bool
[src]
pub fn is_new_pre_checkout_query(&self) -> bool
[src]
pub fn is_new_shipping_query(&self) -> bool
[src]
pub fn is_notification(&self) -> bool
[src]
pub fn is_notification_group(&self) -> bool
[src]
pub fn is_option(&self) -> bool
[src]
pub fn is_poll(&self) -> bool
[src]
pub fn is_recent_stickers(&self) -> bool
[src]
pub fn is_saved_animations(&self) -> bool
[src]
pub fn is_scope_notification_settings(&self) -> bool
[src]
pub fn is_secret_chat(&self) -> bool
[src]
pub fn is_service_notification(&self) -> bool
[src]
pub fn is_supergroup(&self) -> bool
[src]
pub fn is_supergroup_full_info(&self) -> bool
[src]
pub fn is_terms_of_service(&self) -> bool
[src]
pub fn is_trending_sticker_sets(&self) -> bool
[src]
pub fn is_unread_chat_count(&self) -> bool
[src]
pub fn is_unread_message_count(&self) -> bool
[src]
pub fn is_user(&self) -> bool
[src]
pub fn is_user_chat_action(&self) -> bool
[src]
pub fn is_user_full_info(&self) -> bool
[src]
pub fn is_user_privacy_setting_rules(&self) -> bool
[src]
pub fn is_user_status(&self) -> bool
[src]
pub fn on_test_use_update<F: FnOnce(&TestUseUpdate)>(&self, fnc: F) -> &Self
[src]
pub fn on_active_notifications<F: FnOnce(&UpdateActiveNotifications)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_authorization_state<F: FnOnce(&UpdateAuthorizationState)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_basic_group<F: FnOnce(&UpdateBasicGroup)>(&self, fnc: F) -> &Self
[src]
pub fn on_basic_group_full_info<F: FnOnce(&UpdateBasicGroupFullInfo)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_call<F: FnOnce(&UpdateCall)>(&self, fnc: F) -> &Self
[src]
pub fn on_chat_default_disable_notification<F: FnOnce(&UpdateChatDefaultDisableNotification)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_chat_draft_message<F: FnOnce(&UpdateChatDraftMessage)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_chat_is_marked_as_unread<F: FnOnce(&UpdateChatIsMarkedAsUnread)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_chat_is_pinned<F: FnOnce(&UpdateChatIsPinned)>(&self, fnc: F) -> &Self
[src]
pub fn on_chat_is_sponsored<F: FnOnce(&UpdateChatIsSponsored)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_chat_last_message<F: FnOnce(&UpdateChatLastMessage)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_chat_notification_settings<F: FnOnce(&UpdateChatNotificationSettings)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_chat_online_member_count<F: FnOnce(&UpdateChatOnlineMemberCount)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_chat_order<F: FnOnce(&UpdateChatOrder)>(&self, fnc: F) -> &Self
[src]
pub fn on_chat_photo<F: FnOnce(&UpdateChatPhoto)>(&self, fnc: F) -> &Self
[src]
pub fn on_chat_pinned_message<F: FnOnce(&UpdateChatPinnedMessage)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_chat_read_inbox<F: FnOnce(&UpdateChatReadInbox)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_chat_read_outbox<F: FnOnce(&UpdateChatReadOutbox)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_chat_reply_markup<F: FnOnce(&UpdateChatReplyMarkup)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_chat_title<F: FnOnce(&UpdateChatTitle)>(&self, fnc: F) -> &Self
[src]
pub fn on_chat_unread_mention_count<F: FnOnce(&UpdateChatUnreadMentionCount)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_connection_state<F: FnOnce(&UpdateConnectionState)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_delete_messages<F: FnOnce(&UpdateDeleteMessages)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_favorite_stickers<F: FnOnce(&UpdateFavoriteStickers)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_file<F: FnOnce(&UpdateFile)>(&self, fnc: F) -> &Self
[src]
pub fn on_file_generation_start<F: FnOnce(&UpdateFileGenerationStart)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_file_generation_stop<F: FnOnce(&UpdateFileGenerationStop)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_have_pending_notifications<F: FnOnce(&UpdateHavePendingNotifications)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_installed_sticker_sets<F: FnOnce(&UpdateInstalledStickerSets)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_language_pack_strings<F: FnOnce(&UpdateLanguagePackStrings)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_message_content<F: FnOnce(&UpdateMessageContent)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_message_content_opened<F: FnOnce(&UpdateMessageContentOpened)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_message_edited<F: FnOnce(&UpdateMessageEdited)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_message_mention_read<F: FnOnce(&UpdateMessageMentionRead)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_message_send_acknowledged<F: FnOnce(&UpdateMessageSendAcknowledged)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_message_send_failed<F: FnOnce(&UpdateMessageSendFailed)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_message_send_succeeded<F: FnOnce(&UpdateMessageSendSucceeded)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_message_views<F: FnOnce(&UpdateMessageViews)>(&self, fnc: F) -> &Self
[src]
pub fn on_new_callback_query<F: FnOnce(&UpdateNewCallbackQuery)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_new_chat<F: FnOnce(&UpdateNewChat)>(&self, fnc: F) -> &Self
[src]
pub fn on_new_chosen_inline_result<F: FnOnce(&UpdateNewChosenInlineResult)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_new_custom_event<F: FnOnce(&UpdateNewCustomEvent)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_new_custom_query<F: FnOnce(&UpdateNewCustomQuery)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_new_inline_callback_query<F: FnOnce(&UpdateNewInlineCallbackQuery)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_new_inline_query<F: FnOnce(&UpdateNewInlineQuery)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_new_message<F: FnOnce(&UpdateNewMessage)>(&self, fnc: F) -> &Self
[src]
pub fn on_new_pre_checkout_query<F: FnOnce(&UpdateNewPreCheckoutQuery)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_new_shipping_query<F: FnOnce(&UpdateNewShippingQuery)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_notification<F: FnOnce(&UpdateNotification)>(&self, fnc: F) -> &Self
[src]
pub fn on_notification_group<F: FnOnce(&UpdateNotificationGroup)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_option<F: FnOnce(&UpdateOption)>(&self, fnc: F) -> &Self
[src]
pub fn on_poll<F: FnOnce(&UpdatePoll)>(&self, fnc: F) -> &Self
[src]
pub fn on_recent_stickers<F: FnOnce(&UpdateRecentStickers)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_saved_animations<F: FnOnce(&UpdateSavedAnimations)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_scope_notification_settings<F: FnOnce(&UpdateScopeNotificationSettings)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_secret_chat<F: FnOnce(&UpdateSecretChat)>(&self, fnc: F) -> &Self
[src]
pub fn on_service_notification<F: FnOnce(&UpdateServiceNotification)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_supergroup<F: FnOnce(&UpdateSupergroup)>(&self, fnc: F) -> &Self
[src]
pub fn on_supergroup_full_info<F: FnOnce(&UpdateSupergroupFullInfo)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_terms_of_service<F: FnOnce(&UpdateTermsOfService)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_trending_sticker_sets<F: FnOnce(&UpdateTrendingStickerSets)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_unread_chat_count<F: FnOnce(&UpdateUnreadChatCount)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_unread_message_count<F: FnOnce(&UpdateUnreadMessageCount)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_user<F: FnOnce(&UpdateUser)>(&self, fnc: F) -> &Self
[src]
pub fn on_user_chat_action<F: FnOnce(&UpdateUserChatAction)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_user_full_info<F: FnOnce(&UpdateUserFullInfo)>(&self, fnc: F) -> &Self
[src]
pub fn on_user_privacy_setting_rules<F: FnOnce(&UpdateUserPrivacySettingRules)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_user_status<F: FnOnce(&UpdateUserStatus)>(&self, fnc: F) -> &Self
[src]
pub fn as_test_use_update(&self) -> Option<&TestUseUpdate>
[src]
pub fn as_active_notifications(&self) -> Option<&UpdateActiveNotifications>
[src]
pub fn as_authorization_state(&self) -> Option<&UpdateAuthorizationState>
[src]
pub fn as_basic_group(&self) -> Option<&UpdateBasicGroup>
[src]
pub fn as_basic_group_full_info(&self) -> Option<&UpdateBasicGroupFullInfo>
[src]
pub fn as_call(&self) -> Option<&UpdateCall>
[src]
pub fn as_chat_default_disable_notification(
&self
) -> Option<&UpdateChatDefaultDisableNotification>
[src]
&self
) -> Option<&UpdateChatDefaultDisableNotification>
pub fn as_chat_draft_message(&self) -> Option<&UpdateChatDraftMessage>
[src]
pub fn as_chat_is_marked_as_unread(&self) -> Option<&UpdateChatIsMarkedAsUnread>
[src]
pub fn as_chat_is_pinned(&self) -> Option<&UpdateChatIsPinned>
[src]
pub fn as_chat_is_sponsored(&self) -> Option<&UpdateChatIsSponsored>
[src]
pub fn as_chat_last_message(&self) -> Option<&UpdateChatLastMessage>
[src]
pub fn as_chat_notification_settings(
&self
) -> Option<&UpdateChatNotificationSettings>
[src]
&self
) -> Option<&UpdateChatNotificationSettings>
pub fn as_chat_online_member_count(
&self
) -> Option<&UpdateChatOnlineMemberCount>
[src]
&self
) -> Option<&UpdateChatOnlineMemberCount>
pub fn as_chat_order(&self) -> Option<&UpdateChatOrder>
[src]
pub fn as_chat_photo(&self) -> Option<&UpdateChatPhoto>
[src]
pub fn as_chat_pinned_message(&self) -> Option<&UpdateChatPinnedMessage>
[src]
pub fn as_chat_read_inbox(&self) -> Option<&UpdateChatReadInbox>
[src]
pub fn as_chat_read_outbox(&self) -> Option<&UpdateChatReadOutbox>
[src]
pub fn as_chat_reply_markup(&self) -> Option<&UpdateChatReplyMarkup>
[src]
pub fn as_chat_title(&self) -> Option<&UpdateChatTitle>
[src]
pub fn as_chat_unread_mention_count(
&self
) -> Option<&UpdateChatUnreadMentionCount>
[src]
&self
) -> Option<&UpdateChatUnreadMentionCount>
pub fn as_connection_state(&self) -> Option<&UpdateConnectionState>
[src]
pub fn as_delete_messages(&self) -> Option<&UpdateDeleteMessages>
[src]
pub fn as_favorite_stickers(&self) -> Option<&UpdateFavoriteStickers>
[src]
pub fn as_file(&self) -> Option<&UpdateFile>
[src]
pub fn as_file_generation_start(&self) -> Option<&UpdateFileGenerationStart>
[src]
pub fn as_file_generation_stop(&self) -> Option<&UpdateFileGenerationStop>
[src]
pub fn as_have_pending_notifications(
&self
) -> Option<&UpdateHavePendingNotifications>
[src]
&self
) -> Option<&UpdateHavePendingNotifications>
pub fn as_installed_sticker_sets(&self) -> Option<&UpdateInstalledStickerSets>
[src]
pub fn as_language_pack_strings(&self) -> Option<&UpdateLanguagePackStrings>
[src]
pub fn as_message_content(&self) -> Option<&UpdateMessageContent>
[src]
pub fn as_message_content_opened(&self) -> Option<&UpdateMessageContentOpened>
[src]
pub fn as_message_edited(&self) -> Option<&UpdateMessageEdited>
[src]
pub fn as_message_mention_read(&self) -> Option<&UpdateMessageMentionRead>
[src]
pub fn as_message_send_acknowledged(
&self
) -> Option<&UpdateMessageSendAcknowledged>
[src]
&self
) -> Option<&UpdateMessageSendAcknowledged>
pub fn as_message_send_failed(&self) -> Option<&UpdateMessageSendFailed>
[src]
pub fn as_message_send_succeeded(&self) -> Option<&UpdateMessageSendSucceeded>
[src]
pub fn as_message_views(&self) -> Option<&UpdateMessageViews>
[src]
pub fn as_new_callback_query(&self) -> Option<&UpdateNewCallbackQuery>
[src]
pub fn as_new_chat(&self) -> Option<&UpdateNewChat>
[src]
pub fn as_new_chosen_inline_result(
&self
) -> Option<&UpdateNewChosenInlineResult>
[src]
&self
) -> Option<&UpdateNewChosenInlineResult>
pub fn as_new_custom_event(&self) -> Option<&UpdateNewCustomEvent>
[src]
pub fn as_new_custom_query(&self) -> Option<&UpdateNewCustomQuery>
[src]
pub fn as_new_inline_callback_query(
&self
) -> Option<&UpdateNewInlineCallbackQuery>
[src]
&self
) -> Option<&UpdateNewInlineCallbackQuery>
pub fn as_new_inline_query(&self) -> Option<&UpdateNewInlineQuery>
[src]
pub fn as_new_message(&self) -> Option<&UpdateNewMessage>
[src]
pub fn as_new_pre_checkout_query(&self) -> Option<&UpdateNewPreCheckoutQuery>
[src]
pub fn as_new_shipping_query(&self) -> Option<&UpdateNewShippingQuery>
[src]
pub fn as_notification(&self) -> Option<&UpdateNotification>
[src]
pub fn as_notification_group(&self) -> Option<&UpdateNotificationGroup>
[src]
pub fn as_option(&self) -> Option<&UpdateOption>
[src]
pub fn as_poll(&self) -> Option<&UpdatePoll>
[src]
pub fn as_recent_stickers(&self) -> Option<&UpdateRecentStickers>
[src]
pub fn as_saved_animations(&self) -> Option<&UpdateSavedAnimations>
[src]
pub fn as_scope_notification_settings(
&self
) -> Option<&UpdateScopeNotificationSettings>
[src]
&self
) -> Option<&UpdateScopeNotificationSettings>
pub fn as_secret_chat(&self) -> Option<&UpdateSecretChat>
[src]
pub fn as_service_notification(&self) -> Option<&UpdateServiceNotification>
[src]
pub fn as_supergroup(&self) -> Option<&UpdateSupergroup>
[src]
pub fn as_supergroup_full_info(&self) -> Option<&UpdateSupergroupFullInfo>
[src]
pub fn as_terms_of_service(&self) -> Option<&UpdateTermsOfService>
[src]
pub fn as_trending_sticker_sets(&self) -> Option<&UpdateTrendingStickerSets>
[src]
pub fn as_unread_chat_count(&self) -> Option<&UpdateUnreadChatCount>
[src]
pub fn as_unread_message_count(&self) -> Option<&UpdateUnreadMessageCount>
[src]
pub fn as_user(&self) -> Option<&UpdateUser>
[src]
pub fn as_user_chat_action(&self) -> Option<&UpdateUserChatAction>
[src]
pub fn as_user_full_info(&self) -> Option<&UpdateUserFullInfo>
[src]
pub fn as_user_privacy_setting_rules(
&self
) -> Option<&UpdateUserPrivacySettingRules>
[src]
&self
) -> Option<&UpdateUserPrivacySettingRules>
pub fn as_user_status(&self) -> Option<&UpdateUserStatus>
[src]
pub fn test_use_update<T: AsRef<TestUseUpdate>>(t: T) -> Self
[src]
pub fn active_notifications<T: AsRef<UpdateActiveNotifications>>(t: T) -> Self
[src]
pub fn authorization_state<T: AsRef<UpdateAuthorizationState>>(t: T) -> Self
[src]
pub fn basic_group<T: AsRef<UpdateBasicGroup>>(t: T) -> Self
[src]
pub fn basic_group_full_info<T: AsRef<UpdateBasicGroupFullInfo>>(t: T) -> Self
[src]
pub fn call<T: AsRef<UpdateCall>>(t: T) -> Self
[src]
pub fn chat_default_disable_notification<T: AsRef<UpdateChatDefaultDisableNotification>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn chat_draft_message<T: AsRef<UpdateChatDraftMessage>>(t: T) -> Self
[src]
pub fn chat_is_marked_as_unread<T: AsRef<UpdateChatIsMarkedAsUnread>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn chat_is_pinned<T: AsRef<UpdateChatIsPinned>>(t: T) -> Self
[src]
pub fn chat_is_sponsored<T: AsRef<UpdateChatIsSponsored>>(t: T) -> Self
[src]
pub fn chat_last_message<T: AsRef<UpdateChatLastMessage>>(t: T) -> Self
[src]
pub fn chat_notification_settings<T: AsRef<UpdateChatNotificationSettings>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn chat_online_member_count<T: AsRef<UpdateChatOnlineMemberCount>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn chat_order<T: AsRef<UpdateChatOrder>>(t: T) -> Self
[src]
pub fn chat_photo<T: AsRef<UpdateChatPhoto>>(t: T) -> Self
[src]
pub fn chat_pinned_message<T: AsRef<UpdateChatPinnedMessage>>(t: T) -> Self
[src]
pub fn chat_read_inbox<T: AsRef<UpdateChatReadInbox>>(t: T) -> Self
[src]
pub fn chat_read_outbox<T: AsRef<UpdateChatReadOutbox>>(t: T) -> Self
[src]
pub fn chat_reply_markup<T: AsRef<UpdateChatReplyMarkup>>(t: T) -> Self
[src]
pub fn chat_title<T: AsRef<UpdateChatTitle>>(t: T) -> Self
[src]
pub fn chat_unread_mention_count<T: AsRef<UpdateChatUnreadMentionCount>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn connection_state<T: AsRef<UpdateConnectionState>>(t: T) -> Self
[src]
pub fn delete_messages<T: AsRef<UpdateDeleteMessages>>(t: T) -> Self
[src]
pub fn favorite_stickers<T: AsRef<UpdateFavoriteStickers>>(t: T) -> Self
[src]
pub fn file<T: AsRef<UpdateFile>>(t: T) -> Self
[src]
pub fn file_generation_start<T: AsRef<UpdateFileGenerationStart>>(t: T) -> Self
[src]
pub fn file_generation_stop<T: AsRef<UpdateFileGenerationStop>>(t: T) -> Self
[src]
pub fn have_pending_notifications<T: AsRef<UpdateHavePendingNotifications>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn installed_sticker_sets<T: AsRef<UpdateInstalledStickerSets>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn language_pack_strings<T: AsRef<UpdateLanguagePackStrings>>(t: T) -> Self
[src]
pub fn message_content<T: AsRef<UpdateMessageContent>>(t: T) -> Self
[src]
pub fn message_content_opened<T: AsRef<UpdateMessageContentOpened>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn message_edited<T: AsRef<UpdateMessageEdited>>(t: T) -> Self
[src]
pub fn message_mention_read<T: AsRef<UpdateMessageMentionRead>>(t: T) -> Self
[src]
pub fn message_send_acknowledged<T: AsRef<UpdateMessageSendAcknowledged>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn message_send_failed<T: AsRef<UpdateMessageSendFailed>>(t: T) -> Self
[src]
pub fn message_send_succeeded<T: AsRef<UpdateMessageSendSucceeded>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn message_views<T: AsRef<UpdateMessageViews>>(t: T) -> Self
[src]
pub fn new_callback_query<T: AsRef<UpdateNewCallbackQuery>>(t: T) -> Self
[src]
pub fn new_chat<T: AsRef<UpdateNewChat>>(t: T) -> Self
[src]
pub fn new_chosen_inline_result<T: AsRef<UpdateNewChosenInlineResult>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn new_custom_event<T: AsRef<UpdateNewCustomEvent>>(t: T) -> Self
[src]
pub fn new_custom_query<T: AsRef<UpdateNewCustomQuery>>(t: T) -> Self
[src]
pub fn new_inline_callback_query<T: AsRef<UpdateNewInlineCallbackQuery>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn new_inline_query<T: AsRef<UpdateNewInlineQuery>>(t: T) -> Self
[src]
pub fn new_message<T: AsRef<UpdateNewMessage>>(t: T) -> Self
[src]
pub fn new_pre_checkout_query<T: AsRef<UpdateNewPreCheckoutQuery>>(t: T) -> Self
[src]
pub fn new_shipping_query<T: AsRef<UpdateNewShippingQuery>>(t: T) -> Self
[src]
pub fn notification<T: AsRef<UpdateNotification>>(t: T) -> Self
[src]
pub fn notification_group<T: AsRef<UpdateNotificationGroup>>(t: T) -> Self
[src]
pub fn option<T: AsRef<UpdateOption>>(t: T) -> Self
[src]
pub fn poll<T: AsRef<UpdatePoll>>(t: T) -> Self
[src]
pub fn recent_stickers<T: AsRef<UpdateRecentStickers>>(t: T) -> Self
[src]
pub fn saved_animations<T: AsRef<UpdateSavedAnimations>>(t: T) -> Self
[src]
pub fn scope_notification_settings<T: AsRef<UpdateScopeNotificationSettings>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn secret_chat<T: AsRef<UpdateSecretChat>>(t: T) -> Self
[src]
pub fn service_notification<T: AsRef<UpdateServiceNotification>>(t: T) -> Self
[src]
pub fn supergroup<T: AsRef<UpdateSupergroup>>(t: T) -> Self
[src]
pub fn supergroup_full_info<T: AsRef<UpdateSupergroupFullInfo>>(t: T) -> Self
[src]
pub fn terms_of_service<T: AsRef<UpdateTermsOfService>>(t: T) -> Self
[src]
pub fn trending_sticker_sets<T: AsRef<UpdateTrendingStickerSets>>(t: T) -> Self
[src]
pub fn unread_chat_count<T: AsRef<UpdateUnreadChatCount>>(t: T) -> Self
[src]
pub fn unread_message_count<T: AsRef<UpdateUnreadMessageCount>>(t: T) -> Self
[src]
pub fn user<T: AsRef<UpdateUser>>(t: T) -> Self
[src]
pub fn user_chat_action<T: AsRef<UpdateUserChatAction>>(t: T) -> Self
[src]
pub fn user_full_info<T: AsRef<UpdateUserFullInfo>>(t: T) -> Self
[src]
pub fn user_privacy_setting_rules<T: AsRef<UpdateUserPrivacySettingRules>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn user_status<T: AsRef<UpdateUserStatus>>(t: T) -> Self
[src]
Trait Implementations
impl AsRef<Update> for Update
[src]
impl Clone for Update
[src]
impl Debug for Update
[src]
impl Default for Update
[src]
impl<'de> Deserialize<'de> for Update
[src]
fn deserialize<D>(deserializer: D) -> Result<Update, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for Update
[src]
impl Serialize for Update
[src]
Auto Trait Implementations
impl RefUnwindSafe for Update
[src]
impl Send for Update
[src]
impl Sync for Update
[src]
impl Unpin for Update
[src]
impl UnwindSafe for Update
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,