pub trait Function: AnyBoxedSerialize + Serialize {
type Reply: BoxedDeserialize;
}
impl Function for ChangePhone type Reply = User;
impl Function for clacks_mtproto::mtproto::rpc::account::CheckUsername type Reply = Bool;
impl Function for ConfirmPhone type Reply = Bool;
impl Function for DeleteAccount type Reply = Bool;
impl Function for GetAccountTTL type Reply = AccountDaysTTL;
impl Function for GetAuthorizations type Reply = Authorizations;
impl Function for GetNotifySettings type Reply = PeerNotifySettings;
impl Function for GetPassword type Reply = Password;
impl Function for GetPasswordSettings type Reply = PasswordSettings;
impl Function for GetPrivacy type Reply = PrivacyRules;
impl Function for GetTmpPassword type Reply = TmpPassword;
impl Function for GetWallPapers type Reply = Vector<Boxed, WallPaper>;
impl Function for RegisterDevice type Reply = Bool;
impl Function for ReportPeer type Reply = Bool;
impl Function for ResetAuthorization type Reply = Bool;
impl Function for ResetNotifySettings type Reply = Bool;
impl Function for SendChangePhoneCode type Reply = SentCode;
impl Function for SendConfirmPhoneCode type Reply = SentCode;
impl Function for SetAccountTTL type Reply = Bool;
impl Function for SetPrivacy type Reply = PrivacyRules;
impl Function for UnregisterDevice type Reply = Bool;
impl Function for UpdateDeviceLocked type Reply = Bool;
impl Function for UpdateNotifySettings type Reply = Bool;
impl Function for UpdatePasswordSettings type Reply = Bool;
impl Function for UpdateProfile type Reply = User;
impl Function for UpdateStatus type Reply = Bool;
impl Function for clacks_mtproto::mtproto::rpc::account::UpdateUsername type Reply = User;
impl Function for BindTempAuthKey type Reply = Bool;
impl Function for CancelCode type Reply = Bool;
impl Function for CheckPassword type Reply = Authorization;
impl Function for CheckPhone type Reply = CheckedPhone;
impl Function for DropTempAuthKeys type Reply = Bool;
impl Function for ExportAuthorization type Reply = ExportedAuthorization;
impl Function for ImportAuthorization type Reply = Authorization;
impl Function for ImportBotAuthorization type Reply = Authorization;
impl Function for LogOut type Reply = Bool;
impl Function for RecoverPassword type Reply = Authorization;
impl Function for RequestPasswordRecovery type Reply = PasswordRecovery;
impl Function for ResendCode type Reply = SentCode;
impl Function for ResetAuthorizations type Reply = Bool;
impl Function for SendCode type Reply = SentCode;
impl Function for SendInvites type Reply = Bool;
impl Function for SignIn type Reply = Authorization;
impl Function for SignUp type Reply = Authorization;
impl Function for AnswerWebhookJSONQuery type Reply = Bool;
impl Function for SendCustomRequest type Reply = DataJSON;
impl Function for clacks_mtproto::mtproto::rpc::channels::CheckUsername type Reply = Bool;
impl Function for CreateChannel type Reply = Updates;
impl Function for DeleteChannel type Reply = Updates;
impl Function for clacks_mtproto::mtproto::rpc::channels::DeleteHistory type Reply = Bool;
impl Function for clacks_mtproto::mtproto::rpc::channels::DeleteMessages type Reply = AffectedMessages;
impl Function for DeleteUserHistory type Reply = AffectedHistory;
impl Function for EditAbout type Reply = Bool;
impl Function for EditAdmin type Reply = Updates;
impl Function for EditBanned type Reply = Updates;
impl Function for EditPhoto type Reply = Updates;
impl Function for EditTitle type Reply = Updates;
impl Function for ExportInvite type Reply = ExportedChatInvite;
impl Function for ExportMessageLink type Reply = ExportedMessageLink;
impl Function for GetAdminLog type Reply = AdminLogResults;
impl Function for GetAdminedPublicChannels type Reply = Chats;
impl Function for GetChannels type Reply = Chats;
impl Function for GetFullChannel type Reply = ChatFull;
impl Function for clacks_mtproto::mtproto::rpc::channels::GetMessages type Reply = Messages;
impl Function for GetParticipant type Reply = ChannelParticipant;
impl Function for GetParticipants type Reply = ChannelParticipants;
impl Function for InviteToChannel type Reply = Updates;
impl Function for JoinChannel type Reply = Updates;
impl Function for LeaveChannel type Reply = Updates;
impl Function for clacks_mtproto::mtproto::rpc::channels::ReadHistory type Reply = Bool;
impl Function for clacks_mtproto::mtproto::rpc::channels::ReadMessageContents type Reply = Bool;
impl Function for clacks_mtproto::mtproto::rpc::channels::ReportSpam type Reply = Bool;
impl Function for SetStickers type Reply = Bool;
impl Function for ToggleInvites type Reply = Updates;
impl Function for TogglePreHistoryHidden type Reply = Updates;
impl Function for ToggleSignatures type Reply = Updates;
impl Function for UpdatePinnedMessage type Reply = Updates;
impl Function for clacks_mtproto::mtproto::rpc::channels::UpdateUsername type Reply = Bool;
impl Function for Block type Reply = Bool;
impl Function for DeleteContact type Reply = Link;
impl Function for DeleteContacts type Reply = Bool;
impl Function for ExportCard type Reply = Vector<Bare, int>;
impl Function for GetBlocked type Reply = Blocked;
impl Function for GetContacts type Reply = Contacts;
impl Function for GetStatuses type Reply = Vector<Boxed, ContactStatus>;
impl Function for GetTopPeers type Reply = TopPeers;
impl Function for ImportCard type Reply = User;
impl Function for ImportContacts type Reply = ImportedContacts;
impl Function for ResetSaved type Reply = Bool;
impl Function for ResetTopPeerRating type Reply = Bool;
impl Function for ResolveUsername type Reply = ResolvedPeer;
impl Function for clacks_mtproto::mtproto::rpc::contacts::Search type Reply = Found;
impl Function for Unblock type Reply = Bool;
impl Function for SaveDeveloperInfo type Reply = Bool;
impl Function for GetAppChangelog type Reply = Updates;
impl Function for GetAppUpdate type Reply = AppUpdate;
impl Function for GetCdnConfig type Reply = CdnConfig;
impl Function for GetConfig type Reply = Config;
impl Function for GetInviteText type Reply = InviteText;
impl Function for GetNearestDc type Reply = NearestDc;
impl Function for GetRecentMeUrls type Reply = RecentMeUrls;
impl Function for GetSupport type Reply = Support;
impl Function for GetTermsOfService type Reply = TermsOfService;
impl Function for SaveAppLog type Reply = Bool;
impl Function for SetBotUpdatesStatus type Reply = Bool;
impl Function for clacks_mtproto::mtproto::rpc::langpack::GetDifference type Reply = LangPackDifference;
impl Function for GetLangPack type Reply = LangPackDifference;
impl Function for GetLanguages type Reply = Vector<Boxed, LangPackLanguage>;
impl Function for GetStrings type Reply = Vector<Boxed, LangPackString>;
impl Function for AcceptEncryption type Reply = EncryptedChat;
impl Function for AddChatUser type Reply = Updates;
impl Function for CheckChatInvite type Reply = ChatInvite;
impl Function for ClearRecentStickers type Reply = Bool;
impl Function for CreateChat type Reply = Updates;
impl Function for DeleteChatUser type Reply = Updates;
impl Function for clacks_mtproto::mtproto::rpc::messages::DeleteHistory type Reply = AffectedHistory;
impl Function for clacks_mtproto::mtproto::rpc::messages::DeleteMessages type Reply = AffectedMessages;
impl Function for DiscardEncryption type Reply = Bool;
impl Function for EditChatAdmin type Reply = Bool;
impl Function for EditChatPhoto type Reply = Updates;
impl Function for EditChatTitle type Reply = Updates;
impl Function for EditInlineBotMessage type Reply = Bool;
impl Function for EditMessage type Reply = Updates;
impl Function for ExportChatInvite type Reply = ExportedChatInvite;
impl Function for FaveSticker type Reply = Bool;
impl Function for ForwardMessage type Reply = Updates;
impl Function for ForwardMessages type Reply = Updates;
impl Function for GetAllChats type Reply = Chats;
impl Function for GetAllDrafts type Reply = Updates;
impl Function for GetAllStickers type Reply = AllStickers;
impl Function for GetArchivedStickers type Reply = ArchivedStickers;
impl Function for GetAttachedStickers type Reply = Vector<Boxed, StickerSetCovered>;
impl Function for GetBotCallbackAnswer type Reply = BotCallbackAnswer;
impl Function for GetChats type Reply = Chats;
impl Function for GetCommonChats type Reply = Chats;
impl Function for GetDhConfig type Reply = DhConfig;
impl Function for GetDialogs type Reply = Dialogs;
impl Function for GetDocumentByHash type Reply = Document;
impl Function for GetFavedStickers type Reply = FavedStickers;
impl Function for GetFeaturedStickers type Reply = FeaturedStickers;
impl Function for GetFullChat type Reply = ChatFull;
impl Function for GetGameHighScores type Reply = HighScores;
impl Function for GetHistory type Reply = Messages;
impl Function for GetInlineBotResults type Reply = BotResults;
impl Function for GetInlineGameHighScores type Reply = HighScores;
impl Function for GetMaskStickers type Reply = AllStickers;
impl Function for GetMessageEditData type Reply = MessageEditData;
impl Function for clacks_mtproto::mtproto::rpc::messages::GetMessages type Reply = Messages;
impl Function for GetMessagesViews type Reply = Vector<Bare, int>;
impl Function for GetPeerDialogs type Reply = PeerDialogs;
impl Function for GetPeerSettings type Reply = PeerSettings;
impl Function for GetPinnedDialogs type Reply = PeerDialogs;
impl Function for GetRecentLocations type Reply = Messages;
impl Function for GetRecentStickers type Reply = RecentStickers;
impl Function for GetSavedGifs type Reply = SavedGifs;
impl Function for GetStickerSet type Reply = StickerSet;
impl Function for GetUnreadMentions type Reply = Messages;
impl Function for GetWebPage type Reply = WebPage;
impl Function for GetWebPagePreview type Reply = MessageMedia;
impl Function for HideReportSpam type Reply = Bool;
impl Function for ImportChatInvite type Reply = Updates;
impl Function for InstallStickerSet type Reply = StickerSetInstallResult;
impl Function for MigrateChat type Reply = Updates;
impl Function for ReadEncryptedHistory type Reply = Bool;
impl Function for ReadFeaturedStickers type Reply = Bool;
impl Function for clacks_mtproto::mtproto::rpc::messages::ReadHistory type Reply = AffectedMessages;
impl Function for ReadMentions type Reply = AffectedHistory;
impl Function for clacks_mtproto::mtproto::rpc::messages::ReadMessageContents type Reply = AffectedMessages;
impl Function for ReceivedMessages type Reply = Vector<Boxed, ReceivedNotifyMessage>;
impl Function for ReceivedQueue type Reply = Vector<Bare, long>;
impl Function for ReorderPinnedDialogs type Reply = Bool;
impl Function for ReorderStickerSets type Reply = Bool;
impl Function for ReportEncryptedSpam type Reply = Bool;
impl Function for clacks_mtproto::mtproto::rpc::messages::ReportSpam type Reply = Bool;
impl Function for RequestEncryption type Reply = EncryptedChat;
impl Function for SaveDraft type Reply = Bool;
impl Function for SaveGif type Reply = Bool;
impl Function for SaveRecentSticker type Reply = Bool;
impl Function for clacks_mtproto::mtproto::rpc::messages::Search type Reply = Messages;
impl Function for SearchGifs type Reply = FoundGifs;
impl Function for SearchGlobal type Reply = Messages;
impl Function for SendEncrypted type Reply = SentEncryptedMessage;
impl Function for SendEncryptedFile type Reply = SentEncryptedMessage;
impl Function for SendEncryptedService type Reply = SentEncryptedMessage;
impl Function for SendInlineBotResult type Reply = Updates;
impl Function for SendMedia type Reply = Updates;
impl Function for SendMessage type Reply = Updates;
impl Function for SendMultiMedia type Reply = Updates;
impl Function for SendScreenshotNotification type Reply = Updates;
impl Function for SetBotCallbackAnswer type Reply = Bool;
impl Function for SetBotPrecheckoutResults type Reply = Bool;
impl Function for SetBotShippingResults type Reply = Bool;
impl Function for SetEncryptedTyping type Reply = Bool;
impl Function for SetGameScore type Reply = Updates;
impl Function for SetInlineBotResults type Reply = Bool;
impl Function for SetInlineGameScore type Reply = Bool;
impl Function for SetTyping type Reply = Bool;
impl Function for StartBot type Reply = Updates;
impl Function for ToggleChatAdmins type Reply = Updates;
impl Function for ToggleDialogPin type Reply = Bool;
impl Function for UninstallStickerSet type Reply = Bool;
impl Function for UploadEncryptedFile type Reply = EncryptedFile;
impl Function for UploadMedia type Reply = MessageMedia;
impl Function for ClearSavedInfo type Reply = Bool;
impl Function for GetPaymentForm type Reply = PaymentForm;
impl Function for GetPaymentReceipt type Reply = PaymentReceipt;
impl Function for GetSavedInfo type Reply = SavedInfo;
impl Function for SendPaymentForm type Reply = PaymentResult;
impl Function for ValidateRequestedInfo type Reply = ValidatedRequestedInfo;
impl Function for AcceptCall type Reply = PhoneCall;
impl Function for ConfirmCall type Reply = PhoneCall;
impl Function for DiscardCall type Reply = Updates;
impl Function for GetCallConfig type Reply = DataJSON;
impl Function for ReceivedCall type Reply = Bool;
impl Function for RequestCall type Reply = PhoneCall;
impl Function for SaveCallDebug type Reply = Bool;
impl Function for SetCallRating type Reply = Updates;
impl Function for DeletePhotos type Reply = Vector<Bare, long>;
impl Function for GetUserPhotos type Reply = Photos;
impl Function for UpdateProfilePhoto type Reply = UserProfilePhoto;
impl Function for UploadProfilePhoto type Reply = Photo;
impl Function for AddStickerToSet type Reply = StickerSet;
impl Function for ChangeStickerPosition type Reply = StickerSet;
impl Function for CreateStickerSet type Reply = StickerSet;
impl Function for RemoveStickerFromSet type Reply = StickerSet;
impl Function for GetChannelDifference type Reply = ChannelDifference;
impl Function for clacks_mtproto::mtproto::rpc::updates::GetDifference type Reply = Difference;
impl Function for GetState type Reply = State;
impl Function for GetCdnFile type Reply = CdnFile;
impl Function for GetCdnFileHashes type Reply = Vector<Boxed, CdnFileHash>;
impl Function for GetFile type Reply = File;
impl Function for GetWebFile type Reply = WebFile;
impl Function for ReuploadCdnFile type Reply = Vector<Boxed, CdnFileHash>;
impl Function for SaveBigFilePart type Reply = Bool;
impl Function for SaveFilePart type Reply = Bool;
impl Function for GetFullUser type Reply = UserFull;
impl Function for GetUsers type Reply = Vector<Boxed, User>;
impl Function for DestroyAuthKey type Reply = DestroyAuthKeyRes;
impl Function for DestroySession type Reply = DestroySessionRes;
impl Function for GetFutureSalts type Reply = FutureSalts;
impl<X: Function> Function for InitConnection<X> type Reply = X::Reply;
impl<X: Function> Function for InvokeAfterMsg<X> type Reply = X::Reply;
impl<X: Function> Function for InvokeAfterMsgs<X> type Reply = X::Reply;
impl<X: Function> Function for InvokeWithLayer<X> type Reply = X::Reply;
impl<X: Function> Function for InvokeWithoutUpdates<X> type Reply = X::Reply;
impl Function for Ping type Reply = Pong;
impl Function for PingDelayDisconnect type Reply = Pong;
impl Function for ReqDHParams type Reply = ServerDHParams;
impl Function for ReqPq type Reply = ResPQ;
impl Function for RpcDropAnswer type Reply = RpcDropAnswer;
impl Function for SetClientDHParams type Reply = SetClientDHParamsAnswer;