[][src]Trait telegram_bot::types::requests::Request

pub trait Request {
    type Type: RequestType;
    type Response: 'static + ResponseType;
    pub fn serialize(&self) -> Result<HttpRequest, Error>;

    pub fn detach(&self) -> DetachedRequest<Self::Response> { ... }
}

Associated Types

type Type: RequestType[src]

type Response: 'static + ResponseType[src]

Loading content...

Required methods

pub fn serialize(&self) -> Result<HttpRequest, Error>[src]

Loading content...

Provided methods

pub fn detach(&self) -> DetachedRequest<Self::Response>[src]

Loading content...

Implementations on Foreign Types

impl<'a, Req> Request for &'a Req where
    Req: Request
[src]

type Type = <Req as Request>::Type

type Response = <Req as Request>::Response

impl<'a, Req> Request for &'a mut Req where
    Req: Request
[src]

type Type = <Req as Request>::Type

type Response = <Req as Request>::Response

Loading content...

Implementors

impl Request for AnswerInlineQuery[src]

impl Request for DeleteMessage[src]

impl Request for EditMessageLiveLocation[src]

impl Request for EditMessageReplyMarkup[src]

impl Request for ExportChatInviteLink[src]

impl Request for ForwardMessage[src]

impl Request for GetChat[src]

impl Request for GetChatAdministrators[src]

impl Request for GetChatMember[src]

impl Request for GetChatMembersCount[src]

impl Request for GetMe[src]

impl Request for GetUpdates[src]

impl Request for GetUserProfilePhotos[src]

impl Request for KickChatMember[src]

impl Request for LeaveChat[src]

impl Request for PinChatMessage[src]

impl Request for SendChatAction[src]

impl Request for SendLocation[src]

impl Request for StopMessageLiveLocation[src]

impl Request for StopPoll[src]

impl Request for UnbanChatMember[src]

impl Request for UnpinChatMessage[src]

impl<'c> Request for SendDocument<'c>[src]

impl<'c> Request for SendPhoto<'c>[src]

impl<'c> Request for SendVideo<'c>[src]

impl<'c, 'p, 't> Request for SendAudio<'c, 'p, 't>[src]

impl<'c, 's> Request for SendMessage<'s>[src]

impl<'i, 't> Request for AnswerCallbackQuery<'t>[src]

impl<'p, 'f, 'l> Request for SendContact<'p, 'f, 'l>[src]

impl<'q, 'o, 'e> Request for SendPoll<'q, 'o, 'e>[src]

impl<'s> Request for EditMessageCaption<'s>[src]

impl<'s> Request for EditMessageText<'s>[src]

impl<'s> Request for GetFile[src]

impl<'t, 'a, 'f> Request for SendVenue<'t, 'a, 'f>[src]

impl<Resp> Request for DetachedRequest<Resp> where
    Resp: 'static + ResponseType
[src]

Loading content...