[−][src]Trait telegram_bot_fork::types::Request
Associated Types
type Type: RequestType
type Response: 'static + ResponseType
Required methods
fn serialize(&self) -> Result<HttpRequest, Error>
Provided methods
fn detach(&self) -> DetachedRequest<Self::Response>
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
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[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
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
Implementors
impl Request for DeleteMessage
[src]
type Type = JsonRequestType<DeleteMessage>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for EditMessageLiveLocation
[src]
type Type = JsonRequestType<EditMessageLiveLocation>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for EditMessageReplyMarkup
[src]
type Type = JsonRequestType<EditMessageReplyMarkup>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for ExportChatInviteLink
[src]
type Type = JsonRequestType<ExportChatInviteLink>
type Response = JsonIdResponse<String>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for ForwardMessage
[src]
type Type = JsonRequestType<ForwardMessage>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for GetChat
[src]
type Type = JsonRequestType<GetChat>
type Response = JsonIdResponse<Chat>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for GetChatAdministrators
[src]
type Type = JsonRequestType<GetChatAdministrators>
type Response = JsonIdResponse<Vec<ChatMember>>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for GetChatMember
[src]
type Type = JsonRequestType<GetChatMember>
type Response = JsonIdResponse<ChatMember>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for GetChatMembersCount
[src]
type Type = JsonRequestType<GetChatMembersCount>
type Response = JsonIdResponse<i64>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for GetMe
[src]
type Type = JsonRequestType<GetMe>
type Response = JsonIdResponse<User>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for GetUpdates
[src]
type Type = JsonRequestType<GetUpdates>
type Response = JsonIdResponse<Vec<Update>>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for GetUserProfilePhotos
[src]
type Type = JsonRequestType<GetUserProfilePhotos>
type Response = JsonIdResponse<UserProfilePhotos>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for KickChatMember
[src]
type Type = JsonRequestType<KickChatMember>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for LeaveChat
[src]
type Type = JsonRequestType<LeaveChat>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for PinChatMessage
[src]
type Type = JsonRequestType<PinChatMessage>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for RestrictChatMember
[src]
type Type = JsonRequestType<RestrictChatMember>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for SendChatAction
[src]
type Type = JsonRequestType<SendChatAction>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for SendLocation
[src]
type Type = JsonRequestType<SendLocation>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for StopMessageLiveLocation
[src]
type Type = JsonRequestType<StopMessageLiveLocation>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for UnbanChatMember
[src]
type Type = JsonRequestType<UnbanChatMember>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Request for UnpinChatMessage
[src]
type Type = JsonRequestType<UnpinChatMessage>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl<'c, 's> Request for SendMessage<'s>
[src]
type Type = JsonRequestType<SendMessage<'s>>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl<'i, 't> Request for AnswerCallbackQuery<'t>
[src]
type Type = JsonRequestType<AnswerCallbackQuery<'t>>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl<'p, 'f, 'l> Request for SendContact<'p, 'f, 'l>
[src]
type Type = JsonRequestType<SendContact<'p, 'f, 'l>>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl<'s> Request for EditMessageCaption<'s>
[src]
type Type = JsonRequestType<EditMessageCaption<'s>>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl<'s> Request for EditMessageText<'s>
[src]
type Type = JsonRequestType<EditMessageText<'s>>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl<'s> Request for GetFile
[src]
type Type = JsonRequestType<GetFile>
type Response = JsonIdResponse<File>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl<'s, 'c, 'p, 't> Request for SendAudio<'s, 'c, 'p, 't>
[src]
type Type = JsonRequestType<SendAudio<'s, 'c, 'p, 't>>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl<'t, 'a, 'f> Request for SendVenue<'t, 'a, 'f>
[src]
type Type = JsonRequestType<SendVenue<'t, 'a, 'f>>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl<Resp> Request for DetachedRequest<Resp> where
Resp: 'static + ResponseType,
[src]
Resp: 'static + ResponseType,