[][src]Trait tgbot::methods::Method

pub trait Method {
    type Response;
    fn into_request(self) -> Request;
}

Represents an API method

Associated Types

type Response

Type of successful result in API response

Loading content...

Required methods

fn into_request(self) -> Request

Returns information about HTTP request

Loading content...

Implementors

impl Method for AddStickerToSet[src]

type Response = bool

impl Method for AnswerCallbackQuery[src]

type Response = bool

impl Method for AnswerInlineQuery[src]

type Response = bool

impl Method for AnswerPreCheckoutQuery[src]

type Response = bool

impl Method for AnswerShippingQuery[src]

type Response = bool

impl Method for CreateNewStickerSet[src]

type Response = bool

impl Method for DeleteChatPhoto[src]

type Response = bool

impl Method for DeleteChatStickerSet[src]

type Response = bool

impl Method for DeleteMessage[src]

type Response = bool

impl Method for DeleteStickerFromSet[src]

type Response = bool

impl Method for DeleteWebhook[src]

type Response = bool

impl Method for EditMessageCaption[src]

type Response = EditMessageResult

impl Method for EditMessageLiveLocation[src]

type Response = EditMessageResult

impl Method for EditMessageMedia[src]

type Response = EditMessageResult

impl Method for EditMessageReplyMarkup[src]

type Response = EditMessageResult

impl Method for EditMessageText[src]

type Response = EditMessageResult

impl Method for ExportChatInviteLink[src]

type Response = String

impl Method for ForwardMessage[src]

type Response = Message

impl Method for GetChat[src]

type Response = Chat

impl Method for GetChatAdministrators[src]

type Response = Vec<ChatMember>

impl Method for GetChatMember[src]

type Response = ChatMember

impl Method for GetChatMembersCount[src]

type Response = Integer

impl Method for GetFile[src]

type Response = File

impl Method for GetGameHighScores[src]

type Response = Vec<GameHighScore>

impl Method for GetMe[src]

type Response = User

impl Method for GetStickerSet[src]

type Response = StickerSet

impl Method for GetUpdates[src]

type Response = Vec<Update>

impl Method for GetUserProfilePhotos[src]

type Response = UserProfilePhotos

impl Method for GetWebhookInfo[src]

type Response = WebhookInfo

impl Method for KickChatMember[src]

type Response = bool

impl Method for LeaveChat[src]

type Response = bool

impl Method for PinChatMessage[src]

type Response = bool

impl Method for PromoteChatMember[src]

type Response = bool

impl Method for RestrictChatMember[src]

type Response = bool

impl Method for SendAnimation[src]

type Response = Message

impl Method for SendAudio[src]

type Response = Message

impl Method for SendChatAction[src]

type Response = bool

impl Method for SendContact[src]

type Response = Message

impl Method for SendDocument[src]

type Response = Message

impl Method for SendGame[src]

type Response = Message

impl Method for SendInvoice[src]

type Response = Message

impl Method for SendLocation[src]

type Response = Message

impl Method for SendMediaGroup[src]

type Response = Vec<Message>

impl Method for SendMessage[src]

type Response = Message

impl Method for SendPhoto[src]

type Response = Message

impl Method for SendPoll[src]

type Response = Message

impl Method for SendSticker[src]

type Response = Message

impl Method for SendVenue[src]

type Response = Message

impl Method for SendVideo[src]

type Response = Message

impl Method for SendVideoNote[src]

type Response = Message

impl Method for SendVoice[src]

type Response = Message

impl Method for SetChatAdministratorCustomTitle[src]

type Response = bool

impl Method for SetChatDescription[src]

type Response = bool

impl Method for SetChatPermissions[src]

type Response = bool

impl Method for SetChatPhoto[src]

type Response = bool

impl Method for SetChatStickerSet[src]

type Response = bool

impl Method for SetChatTitle[src]

type Response = bool

impl Method for SetGameScore[src]

type Response = EditMessageResult

impl Method for SetPassportDataErrors[src]

type Response = bool

impl Method for SetStickerPositionInSet[src]

type Response = bool

impl Method for SetWebhook[src]

type Response = bool

impl Method for StopMessageLiveLocation[src]

type Response = EditMessageResult

impl Method for StopPoll[src]

type Response = Poll

impl Method for UnbanChatMember[src]

type Response = bool

impl Method for UnpinChatMessage[src]

type Response = bool

impl Method for UploadStickerFile[src]

type Response = File

Loading content...