Struct teloxide_core::adaptors::trace::TraceRequest

source ·
pub struct TraceRequest<R> { /* private fields */ }
Available on crate feature trace_adaptor only.

Trait Implementations§

source§

impl<R: Clone> Clone for TraceRequest<R>

source§

fn clone(&self) -> TraceRequest<R>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<R> HasPayload for TraceRequest<R>
where R: HasPayload,

§

type Payload = <R as HasPayload>::Payload

The type of the payload contained.
source§

fn payload_mut(&mut self) -> &mut Self::Payload

Gain mutable access to the underlying payload.
source§

fn payload_ref(&self) -> &Self::Payload

Gain immutable access to the underlying payload.
source§

fn with_payload_mut<F>(self, f: F) -> Self
where Self: Sized, F: FnOnce(&mut Self::Payload),

Update payload with a function
source§

impl<R> IntoFuture for TraceRequest<R>
where R: Request, Output<R>: Debug, R::Err: Debug, R::Payload: Debug,

§

type Output = Result<<<R as HasPayload>::Payload as Payload>::Output, <R as Request>::Err>

The output that the future will produce on completion.
§

type IntoFuture = Send<<R as Request>::Send>

Which kind of future are we turning this into?
source§

fn into_future(self) -> Self::IntoFuture

Creates a future from a value. Read more
source§

impl<R> Request for TraceRequest<R>
where R: Request, Output<R>: Debug, R::Err: Debug, R::Payload: Debug,

§

type Err = <R as Request>::Err

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

type Send = Send<<R as Request>::Send>

The type of the future returned by the send method.
§

type SendRef = Send<<R as Request>::SendRef>

A type of the future returned by the send_ref method.
source§

fn send(self) -> Self::Send

Send this request. Read more
source§

fn send_ref(&self) -> Self::SendRef

Send this request by reference. Read more
source§

fn erase<'a>(self) -> ErasedRequest<'a, Self::Payload, Self::Err>
where Self: Sized + 'a,

Available on crate feature erased only.

Auto Trait Implementations§

§

impl<R> Freeze for TraceRequest<R>
where R: Freeze,

§

impl<R> RefUnwindSafe for TraceRequest<R>
where R: RefUnwindSafe,

§

impl<R> Send for TraceRequest<R>
where R: Send,

§

impl<R> Sync for TraceRequest<R>
where R: Sync,

§

impl<R> Unpin for TraceRequest<R>
where R: Unpin,

§

impl<R> UnwindSafe for TraceRequest<R>
where R: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

fn sticker(self, value: InputSticker) -> Self

Setter for sticker field.
source§

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

source§

fn callback_query_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for callback_query_id field.
source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
source§

fn show_alert(self, value: bool) -> Self

Setter for show_alert field.
source§

fn url(self, value: Url) -> Self

Setter for url field.
source§

fn cache_time(self, value: u32) -> Self

Setter for cache_time field.
source§

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

source§

fn inline_query_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_query_id field.
source§

fn results<T>(self, value: T) -> Self

Setter for results field.
source§

fn cache_time(self, value: u32) -> Self

Setter for cache_time field.
source§

fn is_personal(self, value: bool) -> Self

Setter for is_personal field.
source§

fn next_offset<T>(self, value: T) -> Self
where T: Into<String>,

Setter for next_offset field.
source§

fn button(self, value: InlineQueryResultsButton) -> Self

Setter for button field.
source§

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

source§

fn pre_checkout_query_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for pre_checkout_query_id field.
source§

fn ok(self, value: bool) -> Self

Setter for ok field.
source§

fn error_message<T>(self, value: T) -> Self
where T: Into<String>,

Setter for error_message field.
source§

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

source§

fn shipping_query_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for shipping_query_id field.
source§

fn ok(self, value: bool) -> Self

Setter for ok field.
source§

fn shipping_options<T>(self, value: T) -> Self
where T: IntoIterator<Item = ShippingOption>,

Setter for shipping_options field.
source§

fn error_message<T>(self, value: T) -> Self
where T: Into<String>,

Setter for error_message field.
source§

impl<P> AnswerWebAppQuerySetters for P
where P: HasPayload<Payload = AnswerWebAppQuery>,

source§

fn web_app_query_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for web_app_query_id field.
source§

fn result(self, value: InlineQueryResult) -> Self

Setter for result field.
source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<P> ApproveChatJoinRequestSetters for P
where P: HasPayload<Payload = ApproveChatJoinRequest>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

impl<P> BanChatMemberSetters for P
where P: HasPayload<Payload = BanChatMember>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn until_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for until_date field.
source§

fn revoke_messages(self, value: bool) -> Self

Setter for revoke_messages field.
source§

impl<P> BanChatSenderChatSetters for P
where P: HasPayload<Payload = BanChatSenderChat>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn sender_chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for sender_chat_id field.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<P> CloseForumTopicSetters for P
where P: HasPayload<Payload = CloseForumTopic>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

impl<P> CloseGeneralForumTopicSetters for P
where P: HasPayload<Payload = CloseGeneralForumTopic>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn from_chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for from_chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn caption_entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for caption_entities field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

impl<P> CopyMessagesSetters for P
where P: HasPayload<Payload = CopyMessages>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn from_chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for from_chat_id field.
source§

fn message_ids<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageId>,

Setter for message_ids field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn remove_caption(self, value: bool) -> Self

Setter for remove_caption field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

fn expire_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for expire_date field.
source§

fn member_limit(self, value: u32) -> Self

Setter for member_limit field.
source§

fn creates_join_request(self, value: bool) -> Self

Setter for creates_join_request field.
source§

impl<P> CreateForumTopicSetters for P
where P: HasPayload<Payload = CreateForumTopic>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

fn icon_color(self, value: u32) -> Self

Setter for icon_color field.
source§

fn icon_custom_emoji_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for icon_custom_emoji_id field.
source§

impl<P> CreateInvoiceLinkSetters for P
where P: HasPayload<Payload = CreateInvoiceLink>,

source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
source§

fn description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for description field.
source§

fn payload<T>(self, value: T) -> Self
where T: Into<String>,

Setter for payload field.
source§

fn provider_token<T>(self, value: T) -> Self
where T: Into<String>,

Setter for provider_token field.
source§

fn currency<T>(self, value: T) -> Self
where T: Into<String>,

Setter for currency field.
source§

fn prices<T>(self, value: T) -> Self
where T: IntoIterator<Item = LabeledPrice>,

Setter for prices field.
source§

fn max_tip_amount(self, value: u32) -> Self

Setter for max_tip_amount field.
source§

fn suggested_tip_amounts<T>(self, value: T) -> Self
where T: IntoIterator<Item = u32>,

Setter for suggested_tip_amounts field.
source§

fn provider_data<T>(self, value: T) -> Self
where T: Into<String>,

Setter for provider_data field.
source§

fn photo_url<T>(self, value: T) -> Self
where T: Into<String>,

Setter for photo_url field.
source§

fn photo_size<T>(self, value: T) -> Self
where T: Into<String>,

Setter for photo_size field.
source§

fn photo_width<T>(self, value: T) -> Self
where T: Into<String>,

Setter for photo_width field.
source§

fn photo_height<T>(self, value: T) -> Self
where T: Into<String>,

Setter for photo_height field.
source§

fn need_name(self, value: bool) -> Self

Setter for need_name field.
source§

fn need_phone_number(self, value: bool) -> Self

Setter for need_phone_number field.
source§

fn need_email(self, value: bool) -> Self

Setter for need_email field.
source§

fn need_shipping_address(self, value: bool) -> Self

Setter for need_shipping_address field.
source§

fn send_phone_number_to_provider(self, value: bool) -> Self

source§

fn send_email_to_provider(self, value: bool) -> Self

Setter for send_email_to_provider field.
source§

fn is_flexible(self, value: bool) -> Self

Setter for is_flexible field.
source§

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

source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
source§

fn stickers<T>(self, value: T) -> Self
where T: IntoIterator<Item = InputSticker>,

Setter for stickers field.
source§

fn sticker_format(self, value: StickerFormat) -> Self

Setter for sticker_format field.
source§

fn sticker_type(self, value: StickerType) -> Self

Setter for sticker_type field.
source§

fn needs_repainting(self, value: bool) -> Self

Setter for needs_repainting field.
source§

impl<P> DeclineChatJoinRequestSetters for P
where P: HasPayload<Payload = DeclineChatJoinRequest>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

impl<P> DeleteForumTopicSetters for P
where P: HasPayload<Payload = DeleteForumTopic>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

impl<P> DeleteMessagesSetters for P
where P: HasPayload<Payload = DeleteMessages>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_ids<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageId>,

Setter for message_ids field.
source§

impl<P> DeleteMyCommandsSetters for P
where P: HasPayload<Payload = DeleteMyCommands>,

source§

fn scope(self, value: BotCommandScope) -> Self

Setter for scope field.
source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
source§

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

source§

fn sticker<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker field.
source§

impl<P> DeleteStickerSetSetters for P
where P: HasPayload<Payload = DeleteStickerSet>,

source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

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

source§

fn drop_pending_updates(self, value: bool) -> Self

Setter for drop_pending_updates field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Setter for invite_link field.
source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

fn expire_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for expire_date field.
source§

fn member_limit(self, value: u32) -> Self

Setter for member_limit field.
source§

fn creates_join_request(self, value: bool) -> Self

Setter for creates_join_request field.
source§

impl<P> EditForumTopicSetters for P
where P: HasPayload<Payload = EditForumTopic>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

fn icon_custom_emoji_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for icon_custom_emoji_id field.
source§

impl<P> EditGeneralForumTopicSetters for P
where P: HasPayload<Payload = EditGeneralForumTopic>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

impl<P> EditMessageCaptionInlineSetters for P

source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn caption_entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for caption_entities field.
source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn caption_entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for caption_entities field.
source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
source§

impl<P> EditMessageLiveLocationInlineSetters for P

source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
source§

fn latitude(self, value: f64) -> Self

Setter for latitude field.
source§

fn longitude(self, value: f64) -> Self

Setter for longitude field.
source§

fn horizontal_accuracy(self, value: f64) -> Self

Setter for horizontal_accuracy field.
source§

fn heading(self, value: u16) -> Self

Setter for heading field.
source§

fn proximity_alert_radius(self, value: u32) -> Self

Setter for proximity_alert_radius field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn latitude(self, value: f64) -> Self

Setter for latitude field.
source§

fn longitude(self, value: f64) -> Self

Setter for longitude field.
source§

fn horizontal_accuracy(self, value: f64) -> Self

Setter for horizontal_accuracy field.
source§

fn heading(self, value: u16) -> Self

Setter for heading field.
source§

fn proximity_alert_radius(self, value: u32) -> Self

Setter for proximity_alert_radius field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
source§

fn media(self, value: InputMedia) -> Self

Setter for media field.
source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn media(self, value: InputMedia) -> Self

Setter for media field.
source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
source§

impl<P> EditMessageReplyMarkupInlineSetters for P

source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
source§

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

source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for entities field.
source§

fn disable_web_page_preview(self, value: bool) -> Self

Setter for disable_web_page_preview field.
source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for entities field.
Setter for link_preview_options field.
source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
source§

impl<T> Erasable for T

source§

unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>

Unerase this erased pointer. Read more
source§

const ACK_1_1_0: bool = true

Available on non-enforce_1_1_0_semantics only.
Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more
source§

fn erase(this: NonNull<Self>) -> NonNull<Erased>

Turn this erasable pointer into an erased pointer. Read more
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn from_chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for from_chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

impl<P> ForwardMessagesSetters for P
where P: HasPayload<Payload = ForwardMessages>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn from_chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for from_chat_id field.
source§

fn message_ids<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageId>,

Setter for message_ids field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

impl<P> GetChatMemberCountSetters for P
where P: HasPayload<Payload = GetChatMemberCount>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

impl<P> GetChatMenuButtonSetters for P
where P: HasPayload<Payload = GetChatMenuButton>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

impl<P> GetCustomEmojiStickersSetters for P
where P: HasPayload<Payload = GetCustomEmojiStickers>,

source§

fn custom_emoji_ids<T>(self, value: T) -> Self
where T: IntoIterator<Item = String>,

Setter for custom_emoji_ids field.
source§

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

source§

fn file_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for file_id field.
source§

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

source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn target<T>(self, value: T) -> Self
where T: Into<TargetMessage>,

Setter for target field.
source§

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

source§

fn scope(self, value: BotCommandScope) -> Self

Setter for scope field.
source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
source§

impl<P> GetMyDefaultAdministratorRightsSetters for P

source§

fn for_channels(self, value: bool) -> Self

Setter for for_channels field.
source§

impl<P> GetMyDescriptionSetters for P
where P: HasPayload<Payload = GetMyDescription>,

source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
source§

impl<P> GetMyNameSetters for P
where P: HasPayload<Payload = GetMyName>,

source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
source§

impl<P> GetMyShortDescriptionSetters for P
where P: HasPayload<Payload = GetMyShortDescription>,

source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
source§

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

source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

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

source§

fn offset(self, value: i32) -> Self

Setter for offset field.
source§

fn limit(self, value: u8) -> Self

Setter for limit field.
source§

fn timeout(self, value: u32) -> Self

Setter for timeout field.
source§

fn allowed_updates<T>(self, value: T) -> Self
where T: IntoIterator<Item = AllowedUpdate>,

Setter for allowed_updates field.
source§

impl<P> GetUserChatBoostsSetters for P
where P: HasPayload<Payload = GetUserChatBoosts>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

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

source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn offset(self, value: u32) -> Self

Setter for offset field.
source§

fn limit(self, value: u8) -> Self

Setter for limit field.
source§

impl<P> HideGeneralForumTopicSetters for P
where P: HasPayload<Payload = HideGeneralForumTopic>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn until_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for until_date field.
source§

fn revoke_messages(self, value: bool) -> Self

Setter for revoke_messages field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn is_anonymous(self, value: bool) -> Self

Setter for is_anonymous field.
source§

fn can_manage_chat(self, value: bool) -> Self

Setter for can_manage_chat field.
source§

fn can_post_messages(self, value: bool) -> Self

Setter for can_post_messages field.
source§

fn can_edit_messages(self, value: bool) -> Self

Setter for can_edit_messages field.
source§

fn can_delete_messages(self, value: bool) -> Self

Setter for can_delete_messages field.
source§

fn can_post_stories(self, value: bool) -> Self

Setter for can_post_stories field.
source§

fn can_edit_stories(self, value: bool) -> Self

Setter for can_edit_stories field.
source§

fn can_delete_stories(self, value: bool) -> Self

Setter for can_delete_stories field.
source§

fn can_manage_video_chats(self, value: bool) -> Self

Setter for can_manage_video_chats field.
source§

fn can_restrict_members(self, value: bool) -> Self

Setter for can_restrict_members field.
source§

fn can_promote_members(self, value: bool) -> Self

Setter for can_promote_members field.
source§

fn can_change_info(self, value: bool) -> Self

Setter for can_change_info field.
source§

fn can_invite_users(self, value: bool) -> Self

Setter for can_invite_users field.
source§

fn can_pin_messages(self, value: bool) -> Self

Setter for can_pin_messages field.
source§

fn can_manage_topics(self, value: bool) -> Self

Setter for can_manage_topics field.
source§

impl<P> ReopenForumTopicSetters for P
where P: HasPayload<Payload = ReopenForumTopic>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

impl<P> ReopenGeneralForumTopicSetters for P
where P: HasPayload<Payload = ReopenGeneralForumTopic>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn permissions(self, value: ChatPermissions) -> Self

Setter for permissions field.
source§

fn use_independent_chat_permissions(self, value: bool) -> Self

source§

fn until_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for until_date field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
Setter for invite_link field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn animation(self, value: InputFile) -> Self

Setter for animation field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn duration(self, value: u32) -> Self

Setter for duration field.
source§

fn width(self, value: u32) -> Self

Setter for width field.
source§

fn height(self, value: u32) -> Self

Setter for height field.
source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn caption_entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for caption_entities field.
source§

fn has_spoiler(self, value: bool) -> Self

Setter for has_spoiler field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn audio(self, value: InputFile) -> Self

Setter for audio field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn caption_entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for caption_entities field.
source§

fn duration(self, value: u32) -> Self

Setter for duration field.
source§

fn performer<T>(self, value: T) -> Self
where T: Into<String>,

Setter for performer field.
source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn action(self, value: ChatAction) -> Self

Setter for action field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn phone_number<T>(self, value: T) -> Self
where T: Into<String>,

Setter for phone_number field.
source§

fn first_name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for first_name field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn last_name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for last_name field.
source§

fn vcard<T>(self, value: T) -> Self
where T: Into<String>,

Setter for vcard field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn emoji(self, value: DiceEmoji) -> Self

Setter for emoji field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn document(self, value: InputFile) -> Self

Setter for document field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn caption_entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for caption_entities field.
source§

fn disable_content_type_detection(self, value: bool) -> Self

source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
source§

fn game_short_name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for game_short_name field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
source§

fn description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for description field.
source§

fn payload<T>(self, value: T) -> Self
where T: Into<String>,

Setter for payload field.
source§

fn provider_token<T>(self, value: T) -> Self
where T: Into<String>,

Setter for provider_token field.
source§

fn currency<T>(self, value: T) -> Self
where T: Into<String>,

Setter for currency field.
source§

fn prices<T>(self, value: T) -> Self
where T: IntoIterator<Item = LabeledPrice>,

Setter for prices field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn max_tip_amount(self, value: u32) -> Self

Setter for max_tip_amount field.
source§

fn suggested_tip_amounts<T>(self, value: T) -> Self
where T: IntoIterator<Item = u32>,

Setter for suggested_tip_amounts field.
source§

fn start_parameter<T>(self, value: T) -> Self
where T: Into<String>,

Setter for start_parameter field.
source§

fn provider_data<T>(self, value: T) -> Self
where T: Into<String>,

Setter for provider_data field.
source§

fn photo_url(self, value: Url) -> Self

Setter for photo_url field.
source§

fn photo_size(self, value: u32) -> Self

Setter for photo_size field.
source§

fn photo_width(self, value: u32) -> Self

Setter for photo_width field.
source§

fn photo_height(self, value: u32) -> Self

Setter for photo_height field.
source§

fn need_name(self, value: bool) -> Self

Setter for need_name field.
source§

fn need_phone_number(self, value: bool) -> Self

Setter for need_phone_number field.
source§

fn need_email(self, value: bool) -> Self

Setter for need_email field.
source§

fn need_shipping_address(self, value: bool) -> Self

Setter for need_shipping_address field.
source§

fn send_phone_number_to_provider(self, value: bool) -> Self

source§

fn send_email_to_provider(self, value: bool) -> Self

Setter for send_email_to_provider field.
source§

fn is_flexible(self, value: bool) -> Self

Setter for is_flexible field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn latitude(self, value: f64) -> Self

Setter for latitude field.
source§

fn longitude(self, value: f64) -> Self

Setter for longitude field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn horizontal_accuracy(self, value: f64) -> Self

Setter for horizontal_accuracy field.
source§

fn live_period(self, value: u32) -> Self

Setter for live_period field.
source§

fn heading(self, value: u16) -> Self

Setter for heading field.
source§

fn proximity_alert_radius(self, value: u32) -> Self

Setter for proximity_alert_radius field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn media<T>(self, value: T) -> Self
where T: IntoIterator<Item = InputMedia>,

Setter for media field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn text<T>(self, value: T) -> Self
where T: Into<String>,

Setter for text field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for entities field.
Setter for link_preview_options field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn photo(self, value: InputFile) -> Self

Setter for photo field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn caption_entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for caption_entities field.
source§

fn has_spoiler(self, value: bool) -> Self

Setter for has_spoiler field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn question<T>(self, value: T) -> Self
where T: Into<String>,

Setter for question field.
source§

fn options<T>(self, value: T) -> Self
where T: IntoIterator<Item = String>,

Setter for options field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn is_anonymous(self, value: bool) -> Self

Setter for is_anonymous field.
source§

fn type_(self, value: PollType) -> Self

Setter for type_ field.
source§

fn allows_multiple_answers(self, value: bool) -> Self

Setter for allows_multiple_answers field.
source§

fn correct_option_id(self, value: u8) -> Self

Setter for correct_option_id field.
source§

fn explanation<T>(self, value: T) -> Self
where T: Into<String>,

Setter for explanation field.
source§

fn explanation_parse_mode(self, value: ParseMode) -> Self

Setter for explanation_parse_mode field.
source§

fn explanation_entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for explanation_entities field.
source§

fn open_period(self, value: u16) -> Self

Setter for open_period field.
source§

fn close_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for close_date field.
source§

fn is_closed(self, value: bool) -> Self

Setter for is_closed field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn sticker(self, value: InputFile) -> Self

Setter for sticker field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn emoji<T>(self, value: T) -> Self
where T: Into<String>,

Setter for emoji field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn latitude(self, value: f64) -> Self

Setter for latitude field.
source§

fn longitude(self, value: f64) -> Self

Setter for longitude field.
source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
source§

fn address<T>(self, value: T) -> Self
where T: Into<String>,

Setter for address field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn foursquare_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for foursquare_id field.
source§

fn foursquare_type<T>(self, value: T) -> Self
where T: Into<String>,

Setter for foursquare_type field.
source§

fn google_place_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for google_place_id field.
source§

fn google_place_type<T>(self, value: T) -> Self
where T: Into<String>,

Setter for google_place_type field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn video_note(self, value: InputFile) -> Self

Setter for video_note field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn duration(self, value: u32) -> Self

Setter for duration field.
source§

fn length(self, value: u32) -> Self

Setter for length field.
source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn video(self, value: InputFile) -> Self

Setter for video field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn duration(self, value: u32) -> Self

Setter for duration field.
source§

fn width(self, value: u32) -> Self

Setter for width field.
source§

fn height(self, value: u32) -> Self

Setter for height field.
source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn caption_entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for caption_entities field.
source§

fn has_spoiler(self, value: bool) -> Self

Setter for has_spoiler field.
source§

fn supports_streaming(self, value: bool) -> Self

Setter for supports_streaming field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn protect_content(self, value: bool) -> Self

Setter for protect_content field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn voice(self, value: InputFile) -> Self

Setter for voice field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

fn caption<T>(self, value: T) -> Self
where T: Into<String>,

Setter for caption field.
source§

fn parse_mode(self, value: ParseMode) -> Self

Setter for parse_mode field.
source§

fn caption_entities<T>(self, value: T) -> Self
where T: IntoIterator<Item = MessageEntity>,

Setter for caption_entities field.
source§

fn duration(self, value: u32) -> Self

Setter for duration field.
source§

fn disable_notification(self, value: bool) -> Self

Setter for disable_notification field.
source§

fn reply_parameters(self, value: ReplyParameters) -> Self

Setter for reply_parameters field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

impl<P> SetChatAdministratorCustomTitleSetters for P

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn custom_title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for custom_title field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for description field.
source§

impl<P> SetChatMenuButtonSetters for P
where P: HasPayload<Payload = SetChatMenuButton>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for chat_id field.
source§

fn menu_button(self, value: MenuButton) -> Self

Setter for menu_button field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn permissions(self, value: ChatPermissions) -> Self

Setter for permissions field.
source§

fn use_independent_chat_permissions(self, value: bool) -> Self

source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn photo(self, value: InputFile) -> Self

Setter for photo field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn sticker_set_name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker_set_name field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
source§

impl<P> SetCustomEmojiStickerSetThumbnailSetters for P

source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

fn custom_emoji_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for custom_emoji_id field.
source§

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

source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn score(self, value: u64) -> Self

Setter for score field.
source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
source§

fn force(self, value: bool) -> Self

Setter for force field.
source§

fn disable_edit_message(self, value: bool) -> Self

Setter for disable_edit_message field.
source§

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

source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn score(self, value: u64) -> Self

Setter for score field.
source§

fn chat_id(self, value: u32) -> Self

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn force(self, value: bool) -> Self

Setter for force field.
source§

fn disable_edit_message(self, value: bool) -> Self

Setter for disable_edit_message field.
source§

impl<P> SetMessageReactionSetters for P
where P: HasPayload<Payload = SetMessageReaction>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn reaction<T>(self, value: T) -> Self
where T: IntoIterator<Item = ReactionType>,

Setter for reaction field.
source§

fn is_big(self, value: bool) -> Self

Setter for is_big field.
source§

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

source§

fn commands<T>(self, value: T) -> Self
where T: IntoIterator<Item = BotCommand>,

Setter for commands field.
source§

fn scope(self, value: BotCommandScope) -> Self

Setter for scope field.
source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
source§

impl<P> SetMyDefaultAdministratorRightsSetters for P

source§

fn rights(self, value: ChatAdministratorRights) -> Self

Setter for rights field.
source§

fn for_channels(self, value: bool) -> Self

Setter for for_channels field.
source§

impl<P> SetMyDescriptionSetters for P
where P: HasPayload<Payload = SetMyDescription>,

source§

fn description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for description field.
source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
source§

impl<P> SetMyNameSetters for P
where P: HasPayload<Payload = SetMyName>,

source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
source§

impl<P> SetMyShortDescriptionSetters for P
where P: HasPayload<Payload = SetMyShortDescription>,

source§

fn short_description<T>(self, value: T) -> Self
where T: Into<String>,

Setter for short_description field.
source§

fn language_code<T>(self, value: T) -> Self
where T: Into<String>,

Setter for language_code field.
source§

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

source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn errors<T>(self, value: T) -> Self

Setter for errors field.
source§

impl<P> SetStickerEmojiListSetters for P
where P: HasPayload<Payload = SetStickerEmojiList>,

source§

fn sticker<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker field.
source§

fn emoji_list<T>(self, value: T) -> Self
where T: IntoIterator<Item = String>,

Setter for emoji_list field.
source§

impl<P> SetStickerKeywordsSetters for P
where P: HasPayload<Payload = SetStickerKeywords>,

source§

fn sticker<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker field.
source§

fn keywords<T>(self, value: T) -> Self
where T: IntoIterator<Item = String>,

Setter for keywords field.
source§

impl<P> SetStickerMaskPositionSetters for P
where P: HasPayload<Payload = SetStickerMaskPosition>,

source§

fn sticker<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker field.
source§

fn mask_position(self, value: MaskPosition) -> Self

Setter for mask_position field.
source§

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

source§

fn sticker<T>(self, value: T) -> Self
where T: Into<String>,

Setter for sticker field.
source§

fn position(self, value: u32) -> Self

Setter for position field.
source§

impl<P> SetStickerSetThumbnailSetters for P
where P: HasPayload<Payload = SetStickerSetThumbnail>,

source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn thumbnail(self, value: InputFile) -> Self

Setter for thumbnail field.
source§

impl<P> SetStickerSetTitleSetters for P
where P: HasPayload<Payload = SetStickerSetTitle>,

source§

fn name<T>(self, value: T) -> Self
where T: Into<String>,

Setter for name field.
source§

fn title<T>(self, value: T) -> Self
where T: Into<String>,

Setter for title field.
source§

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

source§

fn url(self, value: Url) -> Self

Setter for url field.
source§

fn certificate(self, value: InputFile) -> Self

Setter for certificate field.
source§

fn ip_address<T>(self, value: T) -> Self
where T: Into<String>,

Setter for ip_address field.
source§

fn max_connections(self, value: u8) -> Self

Setter for max_connections field.
source§

fn allowed_updates<T>(self, value: T) -> Self
where T: IntoIterator<Item = AllowedUpdate>,

Setter for allowed_updates field.
source§

fn drop_pending_updates(self, value: bool) -> Self

Setter for drop_pending_updates field.
source§

fn secret_token<T>(self, value: T) -> Self
where T: Into<String>,

Setter for secret_token field.
source§

impl<P> StopMessageLiveLocationInlineSetters for P

source§

fn inline_message_id<T>(self, value: T) -> Self
where T: Into<String>,

Setter for inline_message_id field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn reply_markup<T>(self, value: T) -> Self
where T: Into<ReplyMarkup>,

Setter for reply_markup field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

fn reply_markup(self, value: InlineKeyboardMarkup) -> Self

Setter for reply_markup field.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<P> UnbanChatMemberSetters for P
where P: HasPayload<Payload = UnbanChatMember>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn only_if_banned(self, value: bool) -> Self

Setter for only_if_banned field.
source§

impl<P> UnbanChatSenderChatSetters for P
where P: HasPayload<Payload = UnbanChatSenderChat>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn sender_chat_id<T>(self, value: T) -> Self
where T: Into<ChatId>,

Setter for sender_chat_id field.
source§

impl<P> UnhideGeneralForumTopicSetters for P
where P: HasPayload<Payload = UnhideGeneralForumTopic>,

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

impl<P> UnpinAllForumTopicMessagesSetters for P

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_thread_id(self, value: ThreadId) -> Self

Setter for message_thread_id field.
source§

impl<P> UnpinAllGeneralForumTopicMessagesSetters for P

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

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

source§

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.
source§

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.
source§

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

source§

fn user_id(self, value: UserId) -> Self

Setter for user_id field.
source§

fn sticker(self, value: InputFile) -> Self

Setter for sticker field.
source§

fn sticker_format(self, value: StickerFormat) -> Self

Setter for sticker_format field.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<P> CloseSetters for P
where P: HasPayload<Payload = Close>,

source§

impl<P> GetForumTopicIconStickersSetters for P

source§

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

source§

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

source§

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