Enum telexide_fork::api::APIEndpoint[][src]

pub enum APIEndpoint {
Show 78 variants GetUpdates, GetMe, LogOut, Close, SendMessage, SetMyCommands, GetMyCommands, ForwardMessage, CopyMessage, SendPhoto, SendAudio, SendDocument, SendVideo, SendAnimation, SendVoice, SendVideoNote, SendMediaGroup, SendLocation, EditMessageLiveLocation, StopMessageLiveLocation, SendVenue, SendContact, SendPoll, SendDice, SendChatAction, GetUserProfilePhotos, GetFile, KickChatMember, UnbanChatMember, RestrictChatMember, PromoteChatMember, SetChatAdministratorCustomTitle, SetChatPermissions, ExportChatInviteLink, CreateChatInviteLink, EditChatInviteLink, RevokeChatInviteLink, SetChatPhoto, DeleteChatPhoto, SetChatTitle, SetChatDescription, PinChatMessage, UnpinChatMessage, UnpinAllChatMessages, LeaveChat, GetChat, GetChatAdministrators, GetChatMembersCount, GetChatMember, SetChatStickerSet, DeleteChatStickerSet, AnswerCallbackQuery, EditMessageText, EditMessageCaption, EditMessageMedia, EditMessageReplyMarkup, StopPoll, DeleteMessage, SendSticker, GetStickerSet, UploadStickerFile, CreateNewStickerSet, AddStickerToSet, SetStickerPositionInSet, DeleteStickerFromSet, SetStickerSetThumb, AnswerInlineQuery, SendInvoice, AnswerShippingQuery, AnswerPreCheckoutQuery, SendGame, SetGameScore, GetGameHighScores, SetWebhook, SetPassportDataErrors, DeleteWebhook, GetWebhookInfo, Other(String),
}
Expand description

This enum represents all the telegram API endpoints.

It is mostly used for letting the get and post methods in the API trait know how to form the endpoint path

Variants

GetUpdates

GetMe

LogOut

Close

SendMessage

SetMyCommands

GetMyCommands

ForwardMessage

CopyMessage

SendPhoto

SendAudio

SendDocument

SendVideo

SendAnimation

SendVoice

SendVideoNote

SendMediaGroup

SendLocation

EditMessageLiveLocation

StopMessageLiveLocation

SendVenue

SendContact

SendPoll

SendDice

SendChatAction

GetUserProfilePhotos

GetFile

KickChatMember

UnbanChatMember

RestrictChatMember

PromoteChatMember

SetChatAdministratorCustomTitle

SetChatPermissions

SetChatPhoto

DeleteChatPhoto

SetChatTitle

SetChatDescription

PinChatMessage

UnpinChatMessage

UnpinAllChatMessages

LeaveChat

GetChat

GetChatAdministrators

GetChatMembersCount

GetChatMember

SetChatStickerSet

DeleteChatStickerSet

AnswerCallbackQuery

EditMessageText

EditMessageCaption

EditMessageMedia

EditMessageReplyMarkup

StopPoll

DeleteMessage

SendSticker

GetStickerSet

UploadStickerFile

CreateNewStickerSet

AddStickerToSet

SetStickerPositionInSet

DeleteStickerFromSet

SetStickerSetThumb

AnswerInlineQuery

SendInvoice

AnswerShippingQuery

AnswerPreCheckoutQuery

SendGame

SetGameScore

GetGameHighScores

SetWebhook

SetPassportDataErrors

DeleteWebhook

GetWebhookInfo

Other(String)

Tuple Fields

0: String

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more