[][src]Enum telexide::api::APIEndpoint

pub enum APIEndpoint {
    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,
    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),
}

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)

Implementations

impl APIEndpoint[src]

pub fn as_str(&self) -> &str[src]

Trait Implementations

impl Debug for APIEndpoint[src]

impl Display for APIEndpoint[src]

impl From<String> for APIEndpoint[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any