Struct teloxide::requests::JsonRequest[][src]

#[must_use = "requests do nothing until sent"]pub struct JsonRequest<P> { /* fields omitted */ }

A ready-to-send Telegram request whose payload is sent using JSON.

Implementations

impl<P> JsonRequest<P>[src]

pub const fn new(bot: Bot, payload: P) -> JsonRequest<P>[src]

Trait Implementations

impl<P> Deref for JsonRequest<P> where
    P: Payload + Serialize
[src]

type Target = P

The resulting type after dereferencing.

impl<P> DerefMut for JsonRequest<P> where
    P: Payload + Serialize
[src]

impl<P> HasPayload for JsonRequest<P> where
    P: Payload
[src]

type Payload = P

The type of the payload contained.

impl<P> Request for JsonRequest<P> where
    P: 'static + Payload + Serialize,
    <P as Payload>::Output: DeserializeOwned
[src]

type Err = RequestError

The type of an error that may happen while sending a request to Telegram. Read more

type Send = Send<P>

The type of the future returned by the send method.

type SendRef = SendRef<P>

A type of the future returned by the send_ref method. Read more

Auto Trait Implementations

impl<P> !RefUnwindSafe for JsonRequest<P>

impl<P> Send for JsonRequest<P> where
    P: Send

impl<P> Sync for JsonRequest<P> where
    P: Sync

impl<P> Unpin for JsonRequest<P> where
    P: Unpin

impl<P> !UnwindSafe for JsonRequest<P>

Blanket Implementations

impl<P> AddStickerToSetSetters for P where
    P: HasPayload<Payload = AddStickerToSet>, 
[src]

impl<P> AnswerCallbackQuerySetters for P where
    P: HasPayload<Payload = AnswerCallbackQuery>, 
[src]

impl<P> AnswerInlineQuerySetters for P where
    P: HasPayload<Payload = AnswerInlineQuery>, 
[src]

impl<P> AnswerPreCheckoutQuerySetters for P where
    P: HasPayload<Payload = AnswerPreCheckoutQuery>, 
[src]

impl<P> AnswerShippingQuerySetters for P where
    P: HasPayload<Payload = AnswerShippingQuery>, 
[src]

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<P> CloseSetters for P where
    P: HasPayload<Payload = Close>, 
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices

type Remainder = Choices

impl<P> CopyMessageSetters for P where
    P: HasPayload<Payload = CopyMessage>, 
[src]

impl<P> CreateChatInviteLinkSetters for P where
    P: HasPayload<Payload = CreateChatInviteLink>, 
[src]

impl<P> CreateNewStickerSetSetters for P where
    P: HasPayload<Payload = CreateNewStickerSet>, 
[src]

impl<P> DeleteChatPhotoSetters for P where
    P: HasPayload<Payload = DeleteChatPhoto>, 
[src]

impl<P> DeleteChatStickerSetSetters for P where
    P: HasPayload<Payload = DeleteChatStickerSet>, 
[src]

impl<P> DeleteMessageSetters for P where
    P: HasPayload<Payload = DeleteMessage>, 
[src]

impl<P> DeleteStickerFromSetSetters for P where
    P: HasPayload<Payload = DeleteStickerFromSet>, 
[src]

impl<P> DeleteWebhookSetters for P where
    P: HasPayload<Payload = DeleteWebhook>, 
[src]

impl<P> EditChatInviteLinkSetters for P where
    P: HasPayload<Payload = EditChatInviteLink>, 
[src]

impl<P> EditMessageCaptionInlineSetters for P where
    P: HasPayload<Payload = EditMessageCaptionInline>, 
[src]

impl<P> EditMessageCaptionSetters for P where
    P: HasPayload<Payload = EditMessageCaption>, 
[src]

impl<P> EditMessageLiveLocationInlineSetters for P where
    P: HasPayload<Payload = EditMessageLiveLocationInline>, 
[src]

impl<P> EditMessageLiveLocationSetters for P where
    P: HasPayload<Payload = EditMessageLiveLocation>, 
[src]

impl<P> EditMessageMediaInlineSetters for P where
    P: HasPayload<Payload = EditMessageMediaInline>, 
[src]

impl<P> EditMessageMediaSetters for P where
    P: HasPayload<Payload = EditMessageMedia>, 
[src]

impl<P> EditMessageReplyMarkupInlineSetters for P where
    P: HasPayload<Payload = EditMessageReplyMarkupInline>, 
[src]

impl<P> EditMessageReplyMarkupSetters for P where
    P: HasPayload<Payload = EditMessageReplyMarkup>, 
[src]

impl<P> EditMessageTextInlineSetters for P where
    P: HasPayload<Payload = EditMessageTextInline>, 
[src]

impl<P> EditMessageTextSetters for P where
    P: HasPayload<Payload = EditMessageText>, 
[src]

impl<P> ExportChatInviteLinkSetters for P where
    P: HasPayload<Payload = ExportChatInviteLink>, 
[src]

impl<T> FmtForward for T

impl<P> ForwardMessageSetters for P where
    P: HasPayload<Payload = ForwardMessage>, 
[src]

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

impl<P> GetChatAdministratorsSetters for P where
    P: HasPayload<Payload = GetChatAdministrators>, 
[src]

impl<P> GetChatMemberSetters for P where
    P: HasPayload<Payload = GetChatMember>, 
[src]

impl<P> GetChatMembersCountSetters for P where
    P: HasPayload<Payload = GetChatMembersCount>, 
[src]

impl<P> GetChatSetters for P where
    P: HasPayload<Payload = GetChat>, 
[src]

impl<P> GetFileSetters for P where
    P: HasPayload<Payload = GetFile>, 
[src]

impl<P> GetGameHighScoresSetters for P where
    P: HasPayload<Payload = GetGameHighScores>, 
[src]

impl<P> GetMeSetters for P where
    P: HasPayload<Payload = GetMe>, 
[src]

impl<P> GetMyCommandsSetters for P where
    P: HasPayload<Payload = GetMyCommands>, 
[src]

impl<P> GetStickerSetSetters for P where
    P: HasPayload<Payload = GetStickerSet>, 
[src]

impl<P> GetUpdatesSetters for P where
    P: HasPayload<Payload = GetUpdates>, 
[src]

impl<P> GetUserProfilePhotosSetters for P where
    P: HasPayload<Payload = GetUserProfilePhotos>, 
[src]

impl<P> GetWebhookInfoSetters for P where
    P: HasPayload<Payload = GetWebhookInfo>, 
[src]

impl<T> Instrument for T[src]

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

impl<P> KickChatMemberSetters for P where
    P: HasPayload<Payload = KickChatMember>, 
[src]

impl<P> LeaveChatSetters for P where
    P: HasPayload<Payload = LeaveChat>, 
[src]

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 

impl<P> LogOutSetters for P where
    P: HasPayload<Payload = LogOut>, 
[src]

impl<P> PinChatMessageSetters for P where
    P: HasPayload<Payload = PinChatMessage>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<P> PromoteChatMemberSetters for P where
    P: HasPayload<Payload = PromoteChatMember>, 
[src]

impl<P> RestrictChatMemberSetters for P where
    P: HasPayload<Payload = RestrictChatMember>, 
[src]

impl<P> RevokeChatInviteLinkSetters for P where
    P: HasPayload<Payload = RevokeChatInviteLink>, 
[src]

impl<Source> Sculptor<HNil, HNil> for Source

type Remainder = Source

impl<P> SendAnimationSetters for P where
    P: HasPayload<Payload = SendAnimation>, 
[src]

impl<P> SendAudioSetters for P where
    P: HasPayload<Payload = SendAudio>, 
[src]

impl<P> SendChatActionSetters for P where
    P: HasPayload<Payload = SendChatAction>, 
[src]

impl<P> SendContactSetters for P where
    P: HasPayload<Payload = SendContact>, 
[src]

impl<P> SendDiceSetters for P where
    P: HasPayload<Payload = SendDice>, 
[src]

impl<P> SendDocumentSetters for P where
    P: HasPayload<Payload = SendDocument>, 
[src]

impl<P> SendGameSetters for P where
    P: HasPayload<Payload = SendGame>, 
[src]

impl<P> SendInvoiceSetters for P where
    P: HasPayload<Payload = SendInvoice>, 
[src]

impl<P> SendLocationSetters for P where
    P: HasPayload<Payload = SendLocation>, 
[src]

impl<P> SendMediaGroupSetters for P where
    P: HasPayload<Payload = SendMediaGroup>, 
[src]

impl<P> SendMessageSetters for P where
    P: HasPayload<Payload = SendMessage>, 
[src]

impl<P> SendPhotoSetters for P where
    P: HasPayload<Payload = SendPhoto>, 
[src]

impl<P> SendPollSetters for P where
    P: HasPayload<Payload = SendPoll>, 
[src]

impl<P> SendStickerSetters for P where
    P: HasPayload<Payload = SendSticker>, 
[src]

impl<P> SendVenueSetters for P where
    P: HasPayload<Payload = SendVenue>, 
[src]

impl<P> SendVideoNoteSetters for P where
    P: HasPayload<Payload = SendVideoNote>, 
[src]

impl<P> SendVideoSetters for P where
    P: HasPayload<Payload = SendVideo>, 
[src]

impl<P> SendVoiceSetters for P where
    P: HasPayload<Payload = SendVoice>, 
[src]

impl<P> SetChatAdministratorCustomTitleSetters for P where
    P: HasPayload<Payload = SetChatAdministratorCustomTitle>, 
[src]

impl<P> SetChatDescriptionSetters for P where
    P: HasPayload<Payload = SetChatDescription>, 
[src]

impl<P> SetChatPermissionsSetters for P where
    P: HasPayload<Payload = SetChatPermissions>, 
[src]

impl<P> SetChatPhotoSetters for P where
    P: HasPayload<Payload = SetChatPhoto>, 
[src]

impl<P> SetChatStickerSetSetters for P where
    P: HasPayload<Payload = SetChatStickerSet>, 
[src]

impl<P> SetChatTitleSetters for P where
    P: HasPayload<Payload = SetChatTitle>, 
[src]

impl<P> SetGameScoreInlineSetters for P where
    P: HasPayload<Payload = SetGameScoreInline>, 
[src]

impl<P> SetGameScoreSetters for P where
    P: HasPayload<Payload = SetGameScore>, 
[src]

impl<P> SetMyCommandsSetters for P where
    P: HasPayload<Payload = SetMyCommands>, 
[src]

impl<P> SetPassportDataErrorsSetters for P where
    P: HasPayload<Payload = SetPassportDataErrors>, 
[src]

impl<P> SetStickerPositionInSetSetters for P where
    P: HasPayload<Payload = SetStickerPositionInSet>, 
[src]

impl<P> SetStickerSetThumbSetters for P where
    P: HasPayload<Payload = SetStickerSetThumb>, 
[src]

impl<P> SetWebhookSetters for P where
    P: HasPayload<Payload = SetWebhook>, 
[src]

impl<P> StopMessageLiveLocationInlineSetters for P where
    P: HasPayload<Payload = StopMessageLiveLocationInline>, 
[src]

impl<P> StopMessageLiveLocationSetters for P where
    P: HasPayload<Payload = StopMessageLiveLocation>, 
[src]

impl<P> StopPollSetters for P where
    P: HasPayload<Payload = StopPoll>, 
[src]

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

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<P> UnbanChatMemberSetters for P where
    P: HasPayload<Payload = UnbanChatMember>, 
[src]

impl<P> UnpinAllChatMessagesSetters for P where
    P: HasPayload<Payload = UnpinAllChatMessages>, 
[src]

impl<P> UnpinChatMessageSetters for P where
    P: HasPayload<Payload = UnpinChatMessage>, 
[src]

impl<P> UploadStickerFileSetters for P where
    P: HasPayload<Payload = UploadStickerFile>, 
[src]