[−][src]Trait telegram_bot::types::requests::Request
Associated Types
type Type: RequestType
[src]
type Response: 'static + ResponseType
[src]
Required methods
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
Provided methods
pub fn detach(&self) -> DetachedRequest<Self::Response>
[src]
Implementations on Foreign Types
impl<'a, Req> Request for &'a Req where
Req: Request,
[src]
Req: Request,
type Type = <Req as Request>::Type
type Response = <Req as Request>::Response
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'a, Req> Request for &'a mut Req where
Req: Request,
[src]
Req: Request,
type Type = <Req as Request>::Type
type Response = <Req as Request>::Response
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
Implementors
impl Request for AnswerInlineQuery
[src]
type Type = JsonRequestType<AnswerInlineQuery>
type Response = JsonTrueToUnitResponse
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for DeleteMessage
[src]
type Type = JsonRequestType<DeleteMessage>
type Response = JsonTrueToUnitResponse
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for EditMessageLiveLocation
[src]
type Type = JsonRequestType<EditMessageLiveLocation>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for EditMessageReplyMarkup
[src]
type Type = JsonRequestType<EditMessageReplyMarkup>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for ExportChatInviteLink
[src]
type Type = JsonRequestType<ExportChatInviteLink>
type Response = JsonIdResponse<String>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for ForwardMessage
[src]
type Type = JsonRequestType<ForwardMessage>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for GetChat
[src]
type Type = JsonRequestType<GetChat>
type Response = JsonIdResponse<Chat>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for GetChatAdministrators
[src]
type Type = JsonRequestType<GetChatAdministrators>
type Response = JsonIdResponse<Vec<ChatMember, Global>>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for GetChatMember
[src]
type Type = JsonRequestType<GetChatMember>
type Response = JsonIdResponse<ChatMember>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for GetChatMembersCount
[src]
type Type = JsonRequestType<GetChatMembersCount>
type Response = JsonIdResponse<i64>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for GetMe
[src]
type Type = JsonRequestType<GetMe>
type Response = JsonIdResponse<User>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for GetUpdates
[src]
type Type = JsonRequestType<GetUpdates>
type Response = JsonIdResponse<Vec<Update, Global>>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for GetUserProfilePhotos
[src]
type Type = JsonRequestType<GetUserProfilePhotos>
type Response = JsonIdResponse<UserProfilePhotos>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for KickChatMember
[src]
type Type = JsonRequestType<KickChatMember>
type Response = JsonTrueToUnitResponse
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for LeaveChat
[src]
type Type = JsonRequestType<LeaveChat>
type Response = JsonTrueToUnitResponse
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for PinChatMessage
[src]
type Type = JsonRequestType<PinChatMessage>
type Response = JsonTrueToUnitResponse
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for SendChatAction
[src]
type Type = JsonRequestType<SendChatAction>
type Response = JsonTrueToUnitResponse
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for SendLocation
[src]
type Type = JsonRequestType<SendLocation>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for StopMessageLiveLocation
[src]
type Type = JsonRequestType<StopMessageLiveLocation>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for StopPoll
[src]
type Type = JsonRequestType<StopPoll>
type Response = JsonIdResponse<Poll>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for UnbanChatMember
[src]
type Type = JsonRequestType<UnbanChatMember>
type Response = JsonTrueToUnitResponse
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl Request for UnpinChatMessage
[src]
type Type = JsonRequestType<UnpinChatMessage>
type Response = JsonTrueToUnitResponse
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'c> Request for SendDocument<'c>
[src]
type Type = MultipartRequestType<SendDocument<'c>>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'c> Request for SendPhoto<'c>
[src]
type Type = MultipartRequestType<SendPhoto<'c>>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'c> Request for SendVideo<'c>
[src]
type Type = MultipartRequestType<SendVideo<'c>>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'c, 'p, 't> Request for SendAudio<'c, 'p, 't>
[src]
type Type = MultipartRequestType<SendAudio<'c, 'p, 't>>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'c, 's> Request for SendMessage<'s>
[src]
type Type = JsonRequestType<SendMessage<'s>>
type Response = JsonIdResponse<MessageOrChannelPost>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'i, 't> Request for AnswerCallbackQuery<'t>
[src]
type Type = JsonRequestType<AnswerCallbackQuery<'t>>
type Response = JsonTrueToUnitResponse
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'p, 'f, 'l> Request for SendContact<'p, 'f, 'l>
[src]
type Type = JsonRequestType<SendContact<'p, 'f, 'l>>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'q, 'o, 'e> Request for SendPoll<'q, 'o, 'e>
[src]
type Type = JsonRequestType<SendPoll<'q, 'o, 'e>>
type Response = JsonIdResponse<MessageOrChannelPost>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'s> Request for EditMessageCaption<'s>
[src]
type Type = JsonRequestType<EditMessageCaption<'s>>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'s> Request for EditMessageText<'s>
[src]
type Type = JsonRequestType<EditMessageText<'s>>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'s> Request for GetFile
[src]
type Type = JsonRequestType<GetFile>
type Response = JsonIdResponse<File>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<'t, 'a, 'f> Request for SendVenue<'t, 'a, 'f>
[src]
type Type = JsonRequestType<SendVenue<'t, 'a, 'f>>
type Response = JsonIdResponse<Message>
pub fn serialize(&self) -> Result<HttpRequest, Error>
[src]
impl<Resp> Request for DetachedRequest<Resp> where
Resp: 'static + ResponseType,
[src]
Resp: 'static + ResponseType,