Skip to main content

Update

Enum Update 

Source
pub enum Update {
Show 153 variants NewMessage(UpdateNewMessage), MessageId(UpdateMessageId), DeleteMessages(UpdateDeleteMessages), UserTyping(UpdateUserTyping), ChatUserTyping(UpdateChatUserTyping), ChatParticipants(UpdateChatParticipants), UserStatus(UpdateUserStatus), UserName(UpdateUserName), NewAuthorization(UpdateNewAuthorization), NewEncryptedMessage(UpdateNewEncryptedMessage), EncryptedChatTyping(UpdateEncryptedChatTyping), Encryption(UpdateEncryption), EncryptedMessagesRead(UpdateEncryptedMessagesRead), ChatParticipantAdd(UpdateChatParticipantAdd), ChatParticipantDelete(UpdateChatParticipantDelete), DcOptions(UpdateDcOptions), NotifySettings(UpdateNotifySettings), ServiceNotification(UpdateServiceNotification), Privacy(UpdatePrivacy), UserPhone(UpdateUserPhone), ReadHistoryInbox(UpdateReadHistoryInbox), ReadHistoryOutbox(UpdateReadHistoryOutbox), WebPage(UpdateWebPage), ReadMessagesContents(UpdateReadMessagesContents), ChannelTooLong(UpdateChannelTooLong), Channel(UpdateChannel), NewChannelMessage(UpdateNewChannelMessage), ReadChannelInbox(UpdateReadChannelInbox), DeleteChannelMessages(UpdateDeleteChannelMessages), ChannelMessageViews(UpdateChannelMessageViews), ChatParticipantAdmin(UpdateChatParticipantAdmin), NewStickerSet(UpdateNewStickerSet), StickerSetsOrder(UpdateStickerSetsOrder), StickerSets(UpdateStickerSets), SavedGifs, BotInlineQuery(UpdateBotInlineQuery), BotInlineSend(UpdateBotInlineSend), EditChannelMessage(UpdateEditChannelMessage), BotCallbackQuery(UpdateBotCallbackQuery), EditMessage(UpdateEditMessage), InlineBotCallbackQuery(UpdateInlineBotCallbackQuery), ReadChannelOutbox(UpdateReadChannelOutbox), DraftMessage(UpdateDraftMessage), ReadFeaturedStickers, RecentStickers, Config, PtsChanged, ChannelWebPage(UpdateChannelWebPage), DialogPinned(UpdateDialogPinned), PinnedDialogs(UpdatePinnedDialogs), BotWebhookJson(UpdateBotWebhookJson), BotWebhookJsonquery(UpdateBotWebhookJsonquery), BotShippingQuery(UpdateBotShippingQuery), BotPrecheckoutQuery(UpdateBotPrecheckoutQuery), PhoneCall(UpdatePhoneCall), LangPackTooLong(UpdateLangPackTooLong), LangPack(UpdateLangPack), FavedStickers, ChannelReadMessagesContents(UpdateChannelReadMessagesContents), ContactsReset, ChannelAvailableMessages(UpdateChannelAvailableMessages), DialogUnreadMark(UpdateDialogUnreadMark), MessagePoll(UpdateMessagePoll), ChatDefaultBannedRights(UpdateChatDefaultBannedRights), FolderPeers(UpdateFolderPeers), PeerSettings(UpdatePeerSettings), PeerLocated(UpdatePeerLocated), NewScheduledMessage(UpdateNewScheduledMessage), DeleteScheduledMessages(UpdateDeleteScheduledMessages), Theme(UpdateTheme), GeoLiveViewed(UpdateGeoLiveViewed), LoginToken, MessagePollVote(UpdateMessagePollVote), DialogFilter(UpdateDialogFilter), DialogFilterOrder(UpdateDialogFilterOrder), DialogFilters, PhoneCallSignalingData(UpdatePhoneCallSignalingData), ChannelMessageForwards(UpdateChannelMessageForwards), ReadChannelDiscussionInbox(UpdateReadChannelDiscussionInbox), ReadChannelDiscussionOutbox(UpdateReadChannelDiscussionOutbox), PeerBlocked(UpdatePeerBlocked), ChannelUserTyping(UpdateChannelUserTyping), PinnedMessages(UpdatePinnedMessages), PinnedChannelMessages(UpdatePinnedChannelMessages), Chat(UpdateChat), GroupCallParticipants(UpdateGroupCallParticipants), GroupCall(UpdateGroupCall), PeerHistoryTtl(UpdatePeerHistoryTtl), ChatParticipant(UpdateChatParticipant), ChannelParticipant(UpdateChannelParticipant), BotStopped(UpdateBotStopped), GroupCallConnection(UpdateGroupCallConnection), BotCommands(UpdateBotCommands), PendingJoinRequests(UpdatePendingJoinRequests), BotChatInviteRequester(UpdateBotChatInviteRequester), MessageReactions(UpdateMessageReactions), AttachMenuBots, WebViewResultSent(UpdateWebViewResultSent), BotMenuButton(UpdateBotMenuButton), SavedRingtones, TranscribedAudio(UpdateTranscribedAudio), ReadFeaturedEmojiStickers, UserEmojiStatus(UpdateUserEmojiStatus), RecentEmojiStatuses, RecentReactions, MoveStickerSetToTop(UpdateMoveStickerSetToTop), MessageExtendedMedia(UpdateMessageExtendedMedia), User(UpdateUser), AutoSaveSettings, Story(UpdateStory), ReadStories(UpdateReadStories), StoryId(UpdateStoryId), StoriesStealthMode(UpdateStoriesStealthMode), SentStoryReaction(UpdateSentStoryReaction), BotChatBoost(UpdateBotChatBoost), ChannelViewForumAsMessages(UpdateChannelViewForumAsMessages), PeerWallpaper(UpdatePeerWallpaper), BotMessageReaction(UpdateBotMessageReaction), BotMessageReactions(UpdateBotMessageReactions), SavedDialogPinned(UpdateSavedDialogPinned), PinnedSavedDialogs(UpdatePinnedSavedDialogs), SavedReactionTags, SmsJob(UpdateSmsJob), QuickReplies(UpdateQuickReplies), NewQuickReply(UpdateNewQuickReply), DeleteQuickReply(UpdateDeleteQuickReply), QuickReplyMessage(UpdateQuickReplyMessage), DeleteQuickReplyMessages(UpdateDeleteQuickReplyMessages), BotBusinessConnect(UpdateBotBusinessConnect), BotNewBusinessMessage(UpdateBotNewBusinessMessage), BotEditBusinessMessage(UpdateBotEditBusinessMessage), BotDeleteBusinessMessage(UpdateBotDeleteBusinessMessage), NewStoryReaction(UpdateNewStoryReaction), StarsBalance(UpdateStarsBalance), BusinessBotCallbackQuery(UpdateBusinessBotCallbackQuery), StarsRevenueStatus(UpdateStarsRevenueStatus), BotPurchasedPaidMedia(UpdateBotPurchasedPaidMedia), PaidReactionPrivacy(UpdatePaidReactionPrivacy), SentPhoneCode(UpdateSentPhoneCode), GroupCallChainBlocks(UpdateGroupCallChainBlocks), ReadMonoForumInbox(UpdateReadMonoForumInbox), ReadMonoForumOutbox(UpdateReadMonoForumOutbox), MonoForumNoPaidException(UpdateMonoForumNoPaidException), GroupCallMessage(UpdateGroupCallMessage), GroupCallEncryptedMessage(UpdateGroupCallEncryptedMessage), PinnedForumTopic(UpdatePinnedForumTopic), PinnedForumTopics(UpdatePinnedForumTopics), DeleteGroupCallMessages(UpdateDeleteGroupCallMessages), StarGiftAuctionState(UpdateStarGiftAuctionState), StarGiftAuctionUserState(UpdateStarGiftAuctionUserState), EmojiGameInfo(UpdateEmojiGameInfo), StarGiftCraftFail, ChatParticipantRank(UpdateChatParticipantRank),
}
Expand description

Variants§

§

NewMessage(UpdateNewMessage)

§

MessageId(UpdateMessageId)

§

DeleteMessages(UpdateDeleteMessages)

§

UserTyping(UpdateUserTyping)

§

ChatUserTyping(UpdateChatUserTyping)

§

ChatParticipants(UpdateChatParticipants)

§

UserStatus(UpdateUserStatus)

§

UserName(UpdateUserName)

§

NewAuthorization(UpdateNewAuthorization)

§

NewEncryptedMessage(UpdateNewEncryptedMessage)

§

EncryptedChatTyping(UpdateEncryptedChatTyping)

§

Encryption(UpdateEncryption)

§

EncryptedMessagesRead(UpdateEncryptedMessagesRead)

§

ChatParticipantAdd(UpdateChatParticipantAdd)

§

ChatParticipantDelete(UpdateChatParticipantDelete)

§

DcOptions(UpdateDcOptions)

§

NotifySettings(UpdateNotifySettings)

§

ServiceNotification(UpdateServiceNotification)

§

Privacy(UpdatePrivacy)

§

UserPhone(UpdateUserPhone)

§

ReadHistoryInbox(UpdateReadHistoryInbox)

§

ReadHistoryOutbox(UpdateReadHistoryOutbox)

§

WebPage(UpdateWebPage)

§

ReadMessagesContents(UpdateReadMessagesContents)

§

ChannelTooLong(UpdateChannelTooLong)

§

Channel(UpdateChannel)

§

NewChannelMessage(UpdateNewChannelMessage)

§

ReadChannelInbox(UpdateReadChannelInbox)

§

DeleteChannelMessages(UpdateDeleteChannelMessages)

§

ChannelMessageViews(UpdateChannelMessageViews)

§

ChatParticipantAdmin(UpdateChatParticipantAdmin)

§

NewStickerSet(UpdateNewStickerSet)

§

StickerSetsOrder(UpdateStickerSetsOrder)

§

StickerSets(UpdateStickerSets)

§

SavedGifs

§

BotInlineQuery(UpdateBotInlineQuery)

§

BotInlineSend(UpdateBotInlineSend)

§

EditChannelMessage(UpdateEditChannelMessage)

§

BotCallbackQuery(UpdateBotCallbackQuery)

§

EditMessage(UpdateEditMessage)

§

InlineBotCallbackQuery(UpdateInlineBotCallbackQuery)

§

ReadChannelOutbox(UpdateReadChannelOutbox)

§

DraftMessage(UpdateDraftMessage)

§

ReadFeaturedStickers

§

RecentStickers

§

Config

§

PtsChanged

§

ChannelWebPage(UpdateChannelWebPage)

§

DialogPinned(UpdateDialogPinned)

§

PinnedDialogs(UpdatePinnedDialogs)

§

BotWebhookJson(UpdateBotWebhookJson)

§

BotWebhookJsonquery(UpdateBotWebhookJsonquery)

§

BotShippingQuery(UpdateBotShippingQuery)

§

BotPrecheckoutQuery(UpdateBotPrecheckoutQuery)

§

PhoneCall(UpdatePhoneCall)

§

LangPackTooLong(UpdateLangPackTooLong)

§

LangPack(UpdateLangPack)

§

FavedStickers

§

ChannelReadMessagesContents(UpdateChannelReadMessagesContents)

§

ContactsReset

§

ChannelAvailableMessages(UpdateChannelAvailableMessages)

§

DialogUnreadMark(UpdateDialogUnreadMark)

§

MessagePoll(UpdateMessagePoll)

§

ChatDefaultBannedRights(UpdateChatDefaultBannedRights)

§

FolderPeers(UpdateFolderPeers)

§

PeerSettings(UpdatePeerSettings)

§

PeerLocated(UpdatePeerLocated)

§

NewScheduledMessage(UpdateNewScheduledMessage)

§

DeleteScheduledMessages(UpdateDeleteScheduledMessages)

§

Theme(UpdateTheme)

§

GeoLiveViewed(UpdateGeoLiveViewed)

§

LoginToken

§

MessagePollVote(UpdateMessagePollVote)

§

DialogFilter(UpdateDialogFilter)

§

DialogFilterOrder(UpdateDialogFilterOrder)

§

DialogFilters

§

PhoneCallSignalingData(UpdatePhoneCallSignalingData)

§

ChannelMessageForwards(UpdateChannelMessageForwards)

§

ReadChannelDiscussionInbox(UpdateReadChannelDiscussionInbox)

§

ReadChannelDiscussionOutbox(UpdateReadChannelDiscussionOutbox)

§

PeerBlocked(UpdatePeerBlocked)

§

ChannelUserTyping(UpdateChannelUserTyping)

§

PinnedMessages(UpdatePinnedMessages)

§

PinnedChannelMessages(UpdatePinnedChannelMessages)

§

Chat(UpdateChat)

§

GroupCallParticipants(UpdateGroupCallParticipants)

§

GroupCall(UpdateGroupCall)

§

PeerHistoryTtl(UpdatePeerHistoryTtl)

§

ChatParticipant(UpdateChatParticipant)

§

ChannelParticipant(UpdateChannelParticipant)

§

BotStopped(UpdateBotStopped)

§

GroupCallConnection(UpdateGroupCallConnection)

§

BotCommands(UpdateBotCommands)

§

PendingJoinRequests(UpdatePendingJoinRequests)

§

BotChatInviteRequester(UpdateBotChatInviteRequester)

§

MessageReactions(UpdateMessageReactions)

§

AttachMenuBots

§

WebViewResultSent(UpdateWebViewResultSent)

§

BotMenuButton(UpdateBotMenuButton)

§

SavedRingtones

§

TranscribedAudio(UpdateTranscribedAudio)

§

ReadFeaturedEmojiStickers

§

UserEmojiStatus(UpdateUserEmojiStatus)

§

RecentEmojiStatuses

§

RecentReactions

§

MoveStickerSetToTop(UpdateMoveStickerSetToTop)

§

MessageExtendedMedia(UpdateMessageExtendedMedia)

§

User(UpdateUser)

§

AutoSaveSettings

§

Story(UpdateStory)

§

ReadStories(UpdateReadStories)

§

StoryId(UpdateStoryId)

§

StoriesStealthMode(UpdateStoriesStealthMode)

§

SentStoryReaction(UpdateSentStoryReaction)

§

BotChatBoost(UpdateBotChatBoost)

§

ChannelViewForumAsMessages(UpdateChannelViewForumAsMessages)

§

PeerWallpaper(UpdatePeerWallpaper)

§

BotMessageReaction(UpdateBotMessageReaction)

§

BotMessageReactions(UpdateBotMessageReactions)

§

SavedDialogPinned(UpdateSavedDialogPinned)

§

PinnedSavedDialogs(UpdatePinnedSavedDialogs)

§

SavedReactionTags

§

SmsJob(UpdateSmsJob)

§

QuickReplies(UpdateQuickReplies)

§

NewQuickReply(UpdateNewQuickReply)

§

DeleteQuickReply(UpdateDeleteQuickReply)

§

QuickReplyMessage(UpdateQuickReplyMessage)

§

DeleteQuickReplyMessages(UpdateDeleteQuickReplyMessages)

§

BotBusinessConnect(UpdateBotBusinessConnect)

§

BotNewBusinessMessage(UpdateBotNewBusinessMessage)

§

BotEditBusinessMessage(UpdateBotEditBusinessMessage)

§

BotDeleteBusinessMessage(UpdateBotDeleteBusinessMessage)

§

NewStoryReaction(UpdateNewStoryReaction)

§

StarsBalance(UpdateStarsBalance)

§

BusinessBotCallbackQuery(UpdateBusinessBotCallbackQuery)

§

StarsRevenueStatus(UpdateStarsRevenueStatus)

§

BotPurchasedPaidMedia(UpdateBotPurchasedPaidMedia)

§

PaidReactionPrivacy(UpdatePaidReactionPrivacy)

§

SentPhoneCode(UpdateSentPhoneCode)

§

GroupCallChainBlocks(UpdateGroupCallChainBlocks)

§

ReadMonoForumInbox(UpdateReadMonoForumInbox)

§

ReadMonoForumOutbox(UpdateReadMonoForumOutbox)

§

MonoForumNoPaidException(UpdateMonoForumNoPaidException)

§

GroupCallMessage(UpdateGroupCallMessage)

§

GroupCallEncryptedMessage(UpdateGroupCallEncryptedMessage)

§

PinnedForumTopic(UpdatePinnedForumTopic)

§

PinnedForumTopics(UpdatePinnedForumTopics)

§

DeleteGroupCallMessages(UpdateDeleteGroupCallMessages)

§

StarGiftAuctionState(UpdateStarGiftAuctionState)

§

StarGiftAuctionUserState(UpdateStarGiftAuctionUserState)

§

EmojiGameInfo(UpdateEmojiGameInfo)

§

StarGiftCraftFail

§

ChatParticipantRank(UpdateChatParticipantRank)

Trait Implementations§

Source§

impl Clone for Update

Source§

fn clone(&self) -> Update

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Update

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deserializable for Update

Source§

fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>

Read Self from buf, advancing its position.
Source§

fn from_bytes(bytes: &[u8]) -> Result<Self>

Convenience: deserialize from a byte slice.
Source§

impl From<UpdateAttachMenuBots> for Update

Source§

fn from(_x: UpdateAttachMenuBots) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateAutoSaveSettings> for Update

Source§

fn from(_x: UpdateAutoSaveSettings) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotBusinessConnect> for Update

Source§

fn from(x: UpdateBotBusinessConnect) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotCallbackQuery> for Update

Source§

fn from(x: UpdateBotCallbackQuery) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotChatBoost> for Update

Source§

fn from(x: UpdateBotChatBoost) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotChatInviteRequester> for Update

Source§

fn from(x: UpdateBotChatInviteRequester) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotCommands> for Update

Source§

fn from(x: UpdateBotCommands) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotDeleteBusinessMessage> for Update

Source§

fn from(x: UpdateBotDeleteBusinessMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotEditBusinessMessage> for Update

Source§

fn from(x: UpdateBotEditBusinessMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotInlineQuery> for Update

Source§

fn from(x: UpdateBotInlineQuery) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotInlineSend> for Update

Source§

fn from(x: UpdateBotInlineSend) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotMenuButton> for Update

Source§

fn from(x: UpdateBotMenuButton) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotMessageReaction> for Update

Source§

fn from(x: UpdateBotMessageReaction) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotMessageReactions> for Update

Source§

fn from(x: UpdateBotMessageReactions) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotNewBusinessMessage> for Update

Source§

fn from(x: UpdateBotNewBusinessMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotPrecheckoutQuery> for Update

Source§

fn from(x: UpdateBotPrecheckoutQuery) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotPurchasedPaidMedia> for Update

Source§

fn from(x: UpdateBotPurchasedPaidMedia) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotShippingQuery> for Update

Source§

fn from(x: UpdateBotShippingQuery) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotStopped> for Update

Source§

fn from(x: UpdateBotStopped) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotWebhookJson> for Update

Source§

fn from(x: UpdateBotWebhookJson) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBotWebhookJsonquery> for Update

Source§

fn from(x: UpdateBotWebhookJsonquery) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateBusinessBotCallbackQuery> for Update

Source§

fn from(x: UpdateBusinessBotCallbackQuery) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChannel> for Update

Source§

fn from(x: UpdateChannel) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChannelAvailableMessages> for Update

Source§

fn from(x: UpdateChannelAvailableMessages) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChannelMessageForwards> for Update

Source§

fn from(x: UpdateChannelMessageForwards) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChannelMessageViews> for Update

Source§

fn from(x: UpdateChannelMessageViews) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChannelParticipant> for Update

Source§

fn from(x: UpdateChannelParticipant) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChannelReadMessagesContents> for Update

Source§

fn from(x: UpdateChannelReadMessagesContents) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChannelTooLong> for Update

Source§

fn from(x: UpdateChannelTooLong) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChannelUserTyping> for Update

Source§

fn from(x: UpdateChannelUserTyping) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChannelViewForumAsMessages> for Update

Source§

fn from(x: UpdateChannelViewForumAsMessages) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChannelWebPage> for Update

Source§

fn from(x: UpdateChannelWebPage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChat> for Update

Source§

fn from(x: UpdateChat) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChatDefaultBannedRights> for Update

Source§

fn from(x: UpdateChatDefaultBannedRights) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChatParticipant> for Update

Source§

fn from(x: UpdateChatParticipant) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChatParticipantAdd> for Update

Source§

fn from(x: UpdateChatParticipantAdd) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChatParticipantAdmin> for Update

Source§

fn from(x: UpdateChatParticipantAdmin) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChatParticipantDelete> for Update

Source§

fn from(x: UpdateChatParticipantDelete) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChatParticipantRank> for Update

Source§

fn from(x: UpdateChatParticipantRank) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChatParticipants> for Update

Source§

fn from(x: UpdateChatParticipants) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateChatUserTyping> for Update

Source§

fn from(x: UpdateChatUserTyping) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateConfig> for Update

Source§

fn from(_x: UpdateConfig) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateContactsReset> for Update

Source§

fn from(_x: UpdateContactsReset) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDcOptions> for Update

Source§

fn from(x: UpdateDcOptions) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDeleteChannelMessages> for Update

Source§

fn from(x: UpdateDeleteChannelMessages) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDeleteGroupCallMessages> for Update

Source§

fn from(x: UpdateDeleteGroupCallMessages) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDeleteMessages> for Update

Source§

fn from(x: UpdateDeleteMessages) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDeleteQuickReply> for Update

Source§

fn from(x: UpdateDeleteQuickReply) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDeleteQuickReplyMessages> for Update

Source§

fn from(x: UpdateDeleteQuickReplyMessages) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDeleteScheduledMessages> for Update

Source§

fn from(x: UpdateDeleteScheduledMessages) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDialogFilter> for Update

Source§

fn from(x: UpdateDialogFilter) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDialogFilterOrder> for Update

Source§

fn from(x: UpdateDialogFilterOrder) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDialogFilters> for Update

Source§

fn from(_x: UpdateDialogFilters) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDialogPinned> for Update

Source§

fn from(x: UpdateDialogPinned) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDialogUnreadMark> for Update

Source§

fn from(x: UpdateDialogUnreadMark) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDraftMessage> for Update

Source§

fn from(x: UpdateDraftMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateEditChannelMessage> for Update

Source§

fn from(x: UpdateEditChannelMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateEditMessage> for Update

Source§

fn from(x: UpdateEditMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateEmojiGameInfo> for Update

Source§

fn from(x: UpdateEmojiGameInfo) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateEncryptedChatTyping> for Update

Source§

fn from(x: UpdateEncryptedChatTyping) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateEncryptedMessagesRead> for Update

Source§

fn from(x: UpdateEncryptedMessagesRead) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateEncryption> for Update

Source§

fn from(x: UpdateEncryption) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateFavedStickers> for Update

Source§

fn from(_x: UpdateFavedStickers) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateFolderPeers> for Update

Source§

fn from(x: UpdateFolderPeers) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateGeoLiveViewed> for Update

Source§

fn from(x: UpdateGeoLiveViewed) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateGroupCall> for Update

Source§

fn from(x: UpdateGroupCall) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateGroupCallChainBlocks> for Update

Source§

fn from(x: UpdateGroupCallChainBlocks) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateGroupCallConnection> for Update

Source§

fn from(x: UpdateGroupCallConnection) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateGroupCallEncryptedMessage> for Update

Source§

fn from(x: UpdateGroupCallEncryptedMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateGroupCallMessage> for Update

Source§

fn from(x: UpdateGroupCallMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateGroupCallParticipants> for Update

Source§

fn from(x: UpdateGroupCallParticipants) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateInlineBotCallbackQuery> for Update

Source§

fn from(x: UpdateInlineBotCallbackQuery) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateLangPack> for Update

Source§

fn from(x: UpdateLangPack) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateLangPackTooLong> for Update

Source§

fn from(x: UpdateLangPackTooLong) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateLoginToken> for Update

Source§

fn from(_x: UpdateLoginToken) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateMessageExtendedMedia> for Update

Source§

fn from(x: UpdateMessageExtendedMedia) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateMessageId> for Update

Source§

fn from(x: UpdateMessageId) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateMessagePoll> for Update

Source§

fn from(x: UpdateMessagePoll) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateMessagePollVote> for Update

Source§

fn from(x: UpdateMessagePollVote) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateMessageReactions> for Update

Source§

fn from(x: UpdateMessageReactions) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateMonoForumNoPaidException> for Update

Source§

fn from(x: UpdateMonoForumNoPaidException) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateMoveStickerSetToTop> for Update

Source§

fn from(x: UpdateMoveStickerSetToTop) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateNewAuthorization> for Update

Source§

fn from(x: UpdateNewAuthorization) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateNewChannelMessage> for Update

Source§

fn from(x: UpdateNewChannelMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateNewEncryptedMessage> for Update

Source§

fn from(x: UpdateNewEncryptedMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateNewMessage> for Update

Source§

fn from(x: UpdateNewMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateNewQuickReply> for Update

Source§

fn from(x: UpdateNewQuickReply) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateNewScheduledMessage> for Update

Source§

fn from(x: UpdateNewScheduledMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateNewStickerSet> for Update

Source§

fn from(x: UpdateNewStickerSet) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateNewStoryReaction> for Update

Source§

fn from(x: UpdateNewStoryReaction) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateNotifySettings> for Update

Source§

fn from(x: UpdateNotifySettings) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePaidReactionPrivacy> for Update

Source§

fn from(x: UpdatePaidReactionPrivacy) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePeerBlocked> for Update

Source§

fn from(x: UpdatePeerBlocked) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePeerHistoryTtl> for Update

Source§

fn from(x: UpdatePeerHistoryTtl) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePeerLocated> for Update

Source§

fn from(x: UpdatePeerLocated) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePeerSettings> for Update

Source§

fn from(x: UpdatePeerSettings) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePeerWallpaper> for Update

Source§

fn from(x: UpdatePeerWallpaper) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePendingJoinRequests> for Update

Source§

fn from(x: UpdatePendingJoinRequests) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePhoneCall> for Update

Source§

fn from(x: UpdatePhoneCall) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePhoneCallSignalingData> for Update

Source§

fn from(x: UpdatePhoneCallSignalingData) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePinnedChannelMessages> for Update

Source§

fn from(x: UpdatePinnedChannelMessages) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePinnedDialogs> for Update

Source§

fn from(x: UpdatePinnedDialogs) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePinnedForumTopic> for Update

Source§

fn from(x: UpdatePinnedForumTopic) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePinnedForumTopics> for Update

Source§

fn from(x: UpdatePinnedForumTopics) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePinnedMessages> for Update

Source§

fn from(x: UpdatePinnedMessages) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePinnedSavedDialogs> for Update

Source§

fn from(x: UpdatePinnedSavedDialogs) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePrivacy> for Update

Source§

fn from(x: UpdatePrivacy) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePtsChanged> for Update

Source§

fn from(_x: UpdatePtsChanged) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateQuickReplies> for Update

Source§

fn from(x: UpdateQuickReplies) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateQuickReplyMessage> for Update

Source§

fn from(x: UpdateQuickReplyMessage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadChannelDiscussionInbox> for Update

Source§

fn from(x: UpdateReadChannelDiscussionInbox) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadChannelDiscussionOutbox> for Update

Source§

fn from(x: UpdateReadChannelDiscussionOutbox) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadChannelInbox> for Update

Source§

fn from(x: UpdateReadChannelInbox) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadChannelOutbox> for Update

Source§

fn from(x: UpdateReadChannelOutbox) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadFeaturedEmojiStickers> for Update

Source§

fn from(_x: UpdateReadFeaturedEmojiStickers) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadFeaturedStickers> for Update

Source§

fn from(_x: UpdateReadFeaturedStickers) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadHistoryInbox> for Update

Source§

fn from(x: UpdateReadHistoryInbox) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadHistoryOutbox> for Update

Source§

fn from(x: UpdateReadHistoryOutbox) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadMessagesContents> for Update

Source§

fn from(x: UpdateReadMessagesContents) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadMonoForumInbox> for Update

Source§

fn from(x: UpdateReadMonoForumInbox) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadMonoForumOutbox> for Update

Source§

fn from(x: UpdateReadMonoForumOutbox) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateReadStories> for Update

Source§

fn from(x: UpdateReadStories) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateRecentEmojiStatuses> for Update

Source§

fn from(_x: UpdateRecentEmojiStatuses) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateRecentReactions> for Update

Source§

fn from(_x: UpdateRecentReactions) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateRecentStickers> for Update

Source§

fn from(_x: UpdateRecentStickers) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateSavedDialogPinned> for Update

Source§

fn from(x: UpdateSavedDialogPinned) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateSavedGifs> for Update

Source§

fn from(_x: UpdateSavedGifs) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateSavedReactionTags> for Update

Source§

fn from(_x: UpdateSavedReactionTags) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateSavedRingtones> for Update

Source§

fn from(_x: UpdateSavedRingtones) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateSentPhoneCode> for Update

Source§

fn from(x: UpdateSentPhoneCode) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateSentStoryReaction> for Update

Source§

fn from(x: UpdateSentStoryReaction) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateServiceNotification> for Update

Source§

fn from(x: UpdateServiceNotification) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateSmsJob> for Update

Source§

fn from(x: UpdateSmsJob) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateStarGiftAuctionState> for Update

Source§

fn from(x: UpdateStarGiftAuctionState) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateStarGiftAuctionUserState> for Update

Source§

fn from(x: UpdateStarGiftAuctionUserState) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateStarGiftCraftFail> for Update

Source§

fn from(_x: UpdateStarGiftCraftFail) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateStarsBalance> for Update

Source§

fn from(x: UpdateStarsBalance) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateStarsRevenueStatus> for Update

Source§

fn from(x: UpdateStarsRevenueStatus) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateStickerSets> for Update

Source§

fn from(x: UpdateStickerSets) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateStickerSetsOrder> for Update

Source§

fn from(x: UpdateStickerSetsOrder) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateStoriesStealthMode> for Update

Source§

fn from(x: UpdateStoriesStealthMode) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateStory> for Update

Source§

fn from(x: UpdateStory) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateStoryId> for Update

Source§

fn from(x: UpdateStoryId) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateTheme> for Update

Source§

fn from(x: UpdateTheme) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateTranscribedAudio> for Update

Source§

fn from(x: UpdateTranscribedAudio) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateUser> for Update

Source§

fn from(x: UpdateUser) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateUserEmojiStatus> for Update

Source§

fn from(x: UpdateUserEmojiStatus) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateUserName> for Update

Source§

fn from(x: UpdateUserName) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateUserPhone> for Update

Source§

fn from(x: UpdateUserPhone) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateUserStatus> for Update

Source§

fn from(x: UpdateUserStatus) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateUserTyping> for Update

Source§

fn from(x: UpdateUserTyping) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateWebPage> for Update

Source§

fn from(x: UpdateWebPage) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateWebViewResultSent> for Update

Source§

fn from(x: UpdateWebViewResultSent) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Update

Source§

fn eq(&self, other: &Update) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serializable for Update

Source§

fn serialize(&self, buf: &mut impl Extend<u8>)

Appends the serialized form of self to buf.
Source§

fn to_bytes(&self) -> Vec<u8>

Convenience: allocate a fresh Vec<u8> and serialize into it.
Source§

impl TryFrom<Update> for UpdateBotBusinessConnect

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotCallbackQuery

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotChatBoost

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotChatInviteRequester

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotCommands

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotDeleteBusinessMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotEditBusinessMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotInlineQuery

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotInlineSend

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotMenuButton

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotMessageReaction

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotMessageReactions

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotNewBusinessMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotPrecheckoutQuery

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotPurchasedPaidMedia

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotShippingQuery

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotStopped

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotWebhookJson

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBotWebhookJsonquery

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateBusinessBotCallbackQuery

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChannel

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChannelAvailableMessages

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChannelMessageForwards

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChannelMessageViews

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChannelParticipant

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChannelReadMessagesContents

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChannelTooLong

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChannelUserTyping

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChannelViewForumAsMessages

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChannelWebPage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChat

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChatDefaultBannedRights

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChatParticipant

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChatParticipantAdd

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChatParticipantAdmin

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChatParticipantDelete

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChatParticipantRank

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChatParticipants

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateChatUserTyping

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDcOptions

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDeleteChannelMessages

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDeleteGroupCallMessages

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDeleteMessages

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDeleteQuickReply

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDeleteQuickReplyMessages

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDeleteScheduledMessages

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDialogFilter

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDialogFilterOrder

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDialogPinned

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDialogUnreadMark

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateDraftMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateEditChannelMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateEditMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateEmojiGameInfo

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateEncryptedChatTyping

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateEncryptedMessagesRead

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateEncryption

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateFolderPeers

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateGeoLiveViewed

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateGroupCall

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateGroupCallChainBlocks

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateGroupCallConnection

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateGroupCallEncryptedMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateGroupCallMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateGroupCallParticipants

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateInlineBotCallbackQuery

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateLangPack

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateLangPackTooLong

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateMessageExtendedMedia

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateMessageId

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateMessagePoll

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateMessagePollVote

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateMessageReactions

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateMonoForumNoPaidException

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateMoveStickerSetToTop

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateNewAuthorization

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateNewChannelMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateNewEncryptedMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateNewMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateNewQuickReply

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateNewScheduledMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateNewStickerSet

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateNewStoryReaction

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateNotifySettings

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePaidReactionPrivacy

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePeerBlocked

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePeerHistoryTtl

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePeerLocated

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePeerSettings

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePeerWallpaper

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePendingJoinRequests

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePhoneCall

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePhoneCallSignalingData

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePinnedChannelMessages

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePinnedDialogs

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePinnedForumTopic

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePinnedForumTopics

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePinnedMessages

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePinnedSavedDialogs

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdatePrivacy

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateQuickReplies

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateQuickReplyMessage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateReadChannelDiscussionInbox

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateReadChannelDiscussionOutbox

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateReadChannelInbox

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateReadChannelOutbox

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateReadHistoryInbox

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateReadHistoryOutbox

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateReadMessagesContents

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateReadMonoForumInbox

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateReadMonoForumOutbox

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateReadStories

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateSavedDialogPinned

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateSentPhoneCode

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateSentStoryReaction

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateServiceNotification

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateSmsJob

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateStarGiftAuctionState

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateStarGiftAuctionUserState

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateStarsBalance

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateStarsRevenueStatus

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateStickerSets

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateStickerSetsOrder

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateStoriesStealthMode

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateStory

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateStoryId

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateTheme

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateTranscribedAudio

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateUser

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateUserEmojiStatus

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateUserName

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateUserPhone

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateUserStatus

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateUserTyping

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateWebPage

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Update> for UpdateWebViewResultSent

Source§

type Error = Update

The type returned in the event of a conversion error.
Source§

fn try_from(v: Update) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for Update

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.