Struct teloxide::requests::JsonRequest [−][src]
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]
P: Payload + Serialize,
type Target = P
The resulting type after dereferencing.
pub fn deref(&self) -> &<JsonRequest<P> as Deref>::Target
[src]
impl<P> DerefMut for JsonRequest<P> where
P: Payload + Serialize,
[src]
P: Payload + Serialize,
pub fn deref_mut(&mut self) -> &mut <JsonRequest<P> as Deref>::Target
[src]
impl<P> HasPayload for JsonRequest<P> where
P: Payload,
[src]
P: Payload,
type Payload = P
The type of the payload contained.
pub fn payload_mut(&mut self) -> &mut <JsonRequest<P> as HasPayload>::Payload
[src]
pub fn payload_ref(&self) -> &<JsonRequest<P> as HasPayload>::Payload
[src]
impl<P> Request for JsonRequest<P> where
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned,
[src]
P: 'static + Payload + Serialize,
<P as Payload>::Output: DeserializeOwned,
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>
pub fn send(self) -> <JsonRequest<P> as Request>::Send
[src]
pub fn send_ref(&self) -> <JsonRequest<P> as Request>::SendRef
[src]
Auto Trait Implementations
impl<P> !RefUnwindSafe for JsonRequest<P>
impl<P> Send for JsonRequest<P> where
P: Send,
P: Send,
impl<P> Sync for JsonRequest<P> where
P: Sync,
P: Sync,
impl<P> Unpin for JsonRequest<P> where
P: Unpin,
P: Unpin,
impl<P> !UnwindSafe for JsonRequest<P>
Blanket Implementations
impl<P> AddStickerToSetSetters for P where
P: HasPayload<Payload = AddStickerToSet>,
[src]
P: HasPayload<Payload = AddStickerToSet>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn name<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn sticker(self, value: InputSticker) -> Self
[src]
pub fn emojis<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn mask_position(self, value: MaskPosition) -> Self
[src]
impl<P> AnswerCallbackQuerySetters for P where
P: HasPayload<Payload = AnswerCallbackQuery>,
[src]
P: HasPayload<Payload = AnswerCallbackQuery>,
pub fn callback_query_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn text<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn show_alert(self, value: bool) -> Self
[src]
pub fn url<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn cache_time(self, value: u32) -> Self
[src]
impl<P> AnswerInlineQuerySetters for P where
P: HasPayload<Payload = AnswerInlineQuery>,
[src]
P: HasPayload<Payload = AnswerInlineQuery>,
pub fn inline_query_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn results<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<InlineQueryResult, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<InlineQueryResult, Global> as IntoIterator>::Item>,
pub fn cache_time(self, value: u32) -> Self
[src]
pub fn is_personal(self, value: bool) -> Self
[src]
pub fn next_offset<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn switch_pm_text<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn switch_pm_parameter<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
impl<P> AnswerPreCheckoutQuerySetters for P where
P: HasPayload<Payload = AnswerPreCheckoutQuery>,
[src]
P: HasPayload<Payload = AnswerPreCheckoutQuery>,
pub fn pre_checkout_query_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn ok(self, value: bool) -> Self
[src]
pub fn error_message<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
impl<P> AnswerShippingQuerySetters for P where
P: HasPayload<Payload = AnswerShippingQuery>,
[src]
P: HasPayload<Payload = AnswerShippingQuery>,
pub fn shipping_query_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn ok(self, value: bool) -> Self
[src]
pub fn shipping_options<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<ShippingOption, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<ShippingOption, Global> as IntoIterator>::Item>,
pub fn error_message<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<P> CloseSetters for P where
P: HasPayload<Payload = Close>,
[src]
P: HasPayload<Payload = Close>,
impl<T> Conv for T
impl<T> Conv for T
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
type Remainder = Choices
pub fn subset(
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
impl<P> CopyMessageSetters for P where
P: HasPayload<Payload = CopyMessage>,
[src]
P: HasPayload<Payload = CopyMessage>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn from_chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
pub fn caption<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn caption_entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> CreateChatInviteLinkSetters for P where
P: HasPayload<Payload = CreateChatInviteLink>,
[src]
P: HasPayload<Payload = CreateChatInviteLink>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn expire_date(self, value: i64) -> Self
[src]
pub fn member_limit(self, value: u32) -> Self
[src]
impl<P> CreateNewStickerSetSetters for P where
P: HasPayload<Payload = CreateNewStickerSet>,
[src]
P: HasPayload<Payload = CreateNewStickerSet>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn name<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn title<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn sticker(self, value: InputSticker) -> Self
[src]
pub fn emojis<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn contains_masks(self, value: bool) -> Self
[src]
pub fn mask_position(self, value: MaskPosition) -> Self
[src]
impl<P> DeleteChatPhotoSetters for P where
P: HasPayload<Payload = DeleteChatPhoto>,
[src]
P: HasPayload<Payload = DeleteChatPhoto>,
impl<P> DeleteChatStickerSetSetters for P where
P: HasPayload<Payload = DeleteChatStickerSet>,
[src]
P: HasPayload<Payload = DeleteChatStickerSet>,
impl<P> DeleteMessageSetters for P where
P: HasPayload<Payload = DeleteMessage>,
[src]
P: HasPayload<Payload = DeleteMessage>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
impl<P> DeleteStickerFromSetSetters for P where
P: HasPayload<Payload = DeleteStickerFromSet>,
[src]
P: HasPayload<Payload = DeleteStickerFromSet>,
impl<P> DeleteWebhookSetters for P where
P: HasPayload<Payload = DeleteWebhook>,
[src]
P: HasPayload<Payload = DeleteWebhook>,
pub fn drop_pending_updates(self, value: bool) -> Self
[src]
impl<P> EditChatInviteLinkSetters for P where
P: HasPayload<Payload = EditChatInviteLink>,
[src]
P: HasPayload<Payload = EditChatInviteLink>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn invite_link<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn expire_date(self, value: i64) -> Self
[src]
pub fn member_limit(self, value: u32) -> Self
[src]
impl<P> EditMessageCaptionInlineSetters for P where
P: HasPayload<Payload = EditMessageCaptionInline>,
[src]
P: HasPayload<Payload = EditMessageCaptionInline>,
pub fn inline_message_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn caption<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn caption_entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn reply_markup(self, value: InlineKeyboardMarkup) -> Self
[src]
impl<P> EditMessageCaptionSetters for P where
P: HasPayload<Payload = EditMessageCaption>,
[src]
P: HasPayload<Payload = EditMessageCaption>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
pub fn caption<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn caption_entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn reply_markup(self, value: InlineKeyboardMarkup) -> Self
[src]
impl<P> EditMessageLiveLocationInlineSetters for P where
P: HasPayload<Payload = EditMessageLiveLocationInline>,
[src]
P: HasPayload<Payload = EditMessageLiveLocationInline>,
pub fn inline_message_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn latitude(self, value: f64) -> Self
[src]
pub fn longitude(self, value: f64) -> Self
[src]
pub fn horizontal_accuracy(self, value: f64) -> Self
[src]
pub fn heading(self, value: u16) -> Self
[src]
pub fn proximity_alert_radius(self, value: u32) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> EditMessageLiveLocationSetters for P where
P: HasPayload<Payload = EditMessageLiveLocation>,
[src]
P: HasPayload<Payload = EditMessageLiveLocation>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
pub fn latitude(self, value: f64) -> Self
[src]
pub fn longitude(self, value: f64) -> Self
[src]
pub fn horizontal_accuracy(self, value: f64) -> Self
[src]
pub fn heading(self, value: u16) -> Self
[src]
pub fn proximity_alert_radius(self, value: u32) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> EditMessageMediaInlineSetters for P where
P: HasPayload<Payload = EditMessageMediaInline>,
[src]
P: HasPayload<Payload = EditMessageMediaInline>,
pub fn inline_message_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn media(self, value: InputMedia) -> Self
[src]
pub fn reply_markup(self, value: InlineKeyboardMarkup) -> Self
[src]
impl<P> EditMessageMediaSetters for P where
P: HasPayload<Payload = EditMessageMedia>,
[src]
P: HasPayload<Payload = EditMessageMedia>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
pub fn media(self, value: InputMedia) -> Self
[src]
pub fn reply_markup(self, value: InlineKeyboardMarkup) -> Self
[src]
impl<P> EditMessageReplyMarkupInlineSetters for P where
P: HasPayload<Payload = EditMessageReplyMarkupInline>,
[src]
P: HasPayload<Payload = EditMessageReplyMarkupInline>,
pub fn inline_message_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn reply_markup(self, value: InlineKeyboardMarkup) -> Self
[src]
impl<P> EditMessageReplyMarkupSetters for P where
P: HasPayload<Payload = EditMessageReplyMarkup>,
[src]
P: HasPayload<Payload = EditMessageReplyMarkup>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
pub fn reply_markup(self, value: InlineKeyboardMarkup) -> Self
[src]
impl<P> EditMessageTextInlineSetters for P where
P: HasPayload<Payload = EditMessageTextInline>,
[src]
P: HasPayload<Payload = EditMessageTextInline>,
pub fn inline_message_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn text<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn disable_web_page_preview(self, value: bool) -> Self
[src]
pub fn reply_markup(self, value: InlineKeyboardMarkup) -> Self
[src]
impl<P> EditMessageTextSetters for P where
P: HasPayload<Payload = EditMessageText>,
[src]
P: HasPayload<Payload = EditMessageText>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
pub fn text<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn disable_web_page_preview(self, value: bool) -> Self
[src]
pub fn reply_markup(self, value: InlineKeyboardMarkup) -> Self
[src]
impl<P> ExportChatInviteLinkSetters for P where
P: HasPayload<Payload = ExportChatInviteLink>,
[src]
P: HasPayload<Payload = ExportChatInviteLink>,
impl<T> FmtForward for T
pub fn fmt_binary(self) -> FmtBinary<Self> where
Self: Binary,
Self: Binary,
pub fn fmt_display(self) -> FmtDisplay<Self> where
Self: Display,
Self: Display,
pub fn fmt_lower_exp(self) -> FmtLowerExp<Self> where
Self: LowerExp,
Self: LowerExp,
pub fn fmt_lower_hex(self) -> FmtLowerHex<Self> where
Self: LowerHex,
Self: LowerHex,
pub fn fmt_octal(self) -> FmtOctal<Self> where
Self: Octal,
Self: Octal,
pub fn fmt_pointer(self) -> FmtPointer<Self> where
Self: Pointer,
Self: Pointer,
pub fn fmt_upper_exp(self) -> FmtUpperExp<Self> where
Self: UpperExp,
Self: UpperExp,
pub fn fmt_upper_hex(self) -> FmtUpperHex<Self> where
Self: UpperHex,
Self: UpperHex,
impl<P> ForwardMessageSetters for P where
P: HasPayload<Payload = ForwardMessage>,
[src]
P: HasPayload<Payload = ForwardMessage>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn from_chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
impl<T> From<T> for T
[src]
impl<P> GetChatAdministratorsSetters for P where
P: HasPayload<Payload = GetChatAdministrators>,
[src]
P: HasPayload<Payload = GetChatAdministrators>,
impl<P> GetChatMemberSetters for P where
P: HasPayload<Payload = GetChatMember>,
[src]
P: HasPayload<Payload = GetChatMember>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn user_id(self, value: i64) -> Self
[src]
impl<P> GetChatMembersCountSetters for P where
P: HasPayload<Payload = GetChatMembersCount>,
[src]
P: HasPayload<Payload = GetChatMembersCount>,
impl<P> GetChatSetters for P where
P: HasPayload<Payload = GetChat>,
[src]
P: HasPayload<Payload = GetChat>,
impl<P> GetFileSetters for P where
P: HasPayload<Payload = GetFile>,
[src]
P: HasPayload<Payload = GetFile>,
impl<P> GetGameHighScoresSetters for P where
P: HasPayload<Payload = GetGameHighScores>,
[src]
P: HasPayload<Payload = GetGameHighScores>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn target<T>(self, value: T) -> Self where
T: Into<TargetMessage>,
[src]
T: Into<TargetMessage>,
impl<P> GetMeSetters for P where
P: HasPayload<Payload = GetMe>,
[src]
P: HasPayload<Payload = GetMe>,
impl<P> GetMyCommandsSetters for P where
P: HasPayload<Payload = GetMyCommands>,
[src]
P: HasPayload<Payload = GetMyCommands>,
impl<P> GetStickerSetSetters for P where
P: HasPayload<Payload = GetStickerSet>,
[src]
P: HasPayload<Payload = GetStickerSet>,
impl<P> GetUpdatesSetters for P where
P: HasPayload<Payload = GetUpdates>,
[src]
P: HasPayload<Payload = GetUpdates>,
pub fn offset(self, value: i32) -> Self
[src]
pub fn limit(self, value: u8) -> Self
[src]
pub fn timeout(self, value: u32) -> Self
[src]
pub fn allowed_updates<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<AllowedUpdate, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<AllowedUpdate, Global> as IntoIterator>::Item>,
impl<P> GetUserProfilePhotosSetters for P where
P: HasPayload<Payload = GetUserProfilePhotos>,
[src]
P: HasPayload<Payload = GetUserProfilePhotos>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn offset(self, value: u32) -> Self
[src]
pub fn limit(self, value: u8) -> Self
[src]
impl<P> GetWebhookInfoSetters for P where
P: HasPayload<Payload = GetWebhookInfo>,
[src]
P: HasPayload<Payload = GetWebhookInfo>,
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<P> KickChatMemberSetters for P where
P: HasPayload<Payload = KickChatMember>,
[src]
P: HasPayload<Payload = KickChatMember>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn until_date(self, value: u64) -> Self
[src]
pub fn revoke_messages(self, value: bool) -> Self
[src]
impl<P> LeaveChatSetters for P where
P: HasPayload<Payload = LeaveChat>,
[src]
P: HasPayload<Payload = LeaveChat>,
impl<T, U, I> LiftInto<U, I> for T where
U: LiftFrom<T, I>,
U: LiftFrom<T, I>,
pub fn lift_into(self) -> U
impl<P> LogOutSetters for P where
P: HasPayload<Payload = LogOut>,
[src]
P: HasPayload<Payload = LogOut>,
impl<P> PinChatMessageSetters for P where
P: HasPayload<Payload = PinChatMessage>,
[src]
P: HasPayload<Payload = PinChatMessage>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
impl<T> Pipe for T where
T: ?Sized,
T: ?Sized,
pub fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
pub fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
R: 'a,
pub fn pipe_ref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self) -> R
) -> R where
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut Self) -> R
) -> R where
R: 'a,
pub fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R where
Self: Borrow<B>,
R: 'a,
B: 'a + ?Sized,
Self: Borrow<B>,
R: 'a,
B: 'a + ?Sized,
pub fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R where
Self: BorrowMut<B>,
R: 'a,
B: 'a + ?Sized,
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R where
Self: BorrowMut<B>,
R: 'a,
B: 'a + ?Sized,
pub fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R where
Self: AsRef<U>,
R: 'a,
U: 'a + ?Sized,
Self: AsRef<U>,
R: 'a,
U: 'a + ?Sized,
pub fn pipe_as_mut<'a, U, R>(
&'a mut self,
func: impl FnOnce(&'a mut U) -> R
) -> R where
Self: AsMut<U>,
R: 'a,
U: 'a + ?Sized,
&'a mut self,
func: impl FnOnce(&'a mut U) -> R
) -> R where
Self: AsMut<U>,
R: 'a,
U: 'a + ?Sized,
pub fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
pub fn pipe_deref_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: DerefMut<Target = T> + Deref,
T: 'a + ?Sized,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: DerefMut<Target = T> + Deref,
T: 'a + ?Sized,
R: 'a,
impl<T> Pipe for T
impl<T> PipeAsRef for T
pub fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: AsRef<T>,
T: 'a,
R: 'a,
Self: AsRef<T>,
T: 'a,
R: 'a,
pub fn pipe_as_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: AsMut<T>,
T: 'a,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: AsMut<T>,
T: 'a,
R: 'a,
impl<T> PipeBorrow for T
pub fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Borrow<T>,
T: 'a,
R: 'a,
Self: Borrow<T>,
T: 'a,
R: 'a,
pub fn pipe_borrow_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
T: 'a,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
T: 'a,
R: 'a,
impl<T> PipeDeref for T
pub fn pipe_deref<'a, R>(
&'a self,
func: impl FnOnce(&'a Self::Target) -> R
) -> R where
Self: Deref,
R: 'a,
&'a self,
func: impl FnOnce(&'a Self::Target) -> R
) -> R where
Self: Deref,
R: 'a,
pub fn pipe_deref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
impl<T> PipeRef for T
pub fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
R: 'a,
pub fn pipe_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
R: 'a,
R: 'a,
impl<P> PromoteChatMemberSetters for P where
P: HasPayload<Payload = PromoteChatMember>,
[src]
P: HasPayload<Payload = PromoteChatMember>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn is_anonymous(self, value: bool) -> Self
[src]
pub fn can_manage_chat(self, value: bool) -> Self
[src]
pub fn can_change_info(self, value: bool) -> Self
[src]
pub fn can_post_messages(self, value: bool) -> Self
[src]
pub fn can_edit_messages(self, value: bool) -> Self
[src]
pub fn can_delete_messages(self, value: bool) -> Self
[src]
pub fn can_manage_voice_chats(self, value: bool) -> Self
[src]
pub fn can_invite_users(self, value: bool) -> Self
[src]
pub fn can_restrict_members(self, value: bool) -> Self
[src]
pub fn can_pin_messages(self, value: bool) -> Self
[src]
pub fn can_promote_members(self, value: bool) -> Self
[src]
impl<P> RestrictChatMemberSetters for P where
P: HasPayload<Payload = RestrictChatMember>,
[src]
P: HasPayload<Payload = RestrictChatMember>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn permissions(self, value: ChatPermissions) -> Self
[src]
pub fn until_date(self, value: u64) -> Self
[src]
impl<P> RevokeChatInviteLinkSetters for P where
P: HasPayload<Payload = RevokeChatInviteLink>,
[src]
P: HasPayload<Payload = RevokeChatInviteLink>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn invite_link<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
impl<Source> Sculptor<HNil, HNil> for Source
impl<P> SendAnimationSetters for P where
P: HasPayload<Payload = SendAnimation>,
[src]
P: HasPayload<Payload = SendAnimation>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn animation(self, value: InputFile) -> Self
[src]
pub fn duration(self, value: u32) -> Self
[src]
pub fn width(self, value: u32) -> Self
[src]
pub fn height(self, value: u32) -> Self
[src]
pub fn thumb(self, value: InputFile) -> Self
[src]
pub fn caption<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn caption_entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendAudioSetters for P where
P: HasPayload<Payload = SendAudio>,
[src]
P: HasPayload<Payload = SendAudio>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn audio(self, value: InputFile) -> Self
[src]
pub fn caption<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn caption_entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn duration(self, value: u32) -> Self
[src]
pub fn performer<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn title<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn thumb(self, value: InputFile) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendChatActionSetters for P where
P: HasPayload<Payload = SendChatAction>,
[src]
P: HasPayload<Payload = SendChatAction>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn action(self, value: ChatAction) -> Self
[src]
impl<P> SendContactSetters for P where
P: HasPayload<Payload = SendContact>,
[src]
P: HasPayload<Payload = SendContact>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn phone_number<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn first_name<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn last_name<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn vcard<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendDiceSetters for P where
P: HasPayload<Payload = SendDice>,
[src]
P: HasPayload<Payload = SendDice>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn emoji(self, value: DiceEmoji) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendDocumentSetters for P where
P: HasPayload<Payload = SendDocument>,
[src]
P: HasPayload<Payload = SendDocument>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn document(self, value: InputFile) -> Self
[src]
pub fn thumb(self, value: InputFile) -> Self
[src]
pub fn caption<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn caption_entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn disable_content_type_detection(self, value: bool) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendGameSetters for P where
P: HasPayload<Payload = SendGame>,
[src]
P: HasPayload<Payload = SendGame>,
pub fn chat_id(self, value: u32) -> Self
[src]
pub fn game_short_name<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendInvoiceSetters for P where
P: HasPayload<Payload = SendInvoice>,
[src]
P: HasPayload<Payload = SendInvoice>,
pub fn chat_id(self, value: i32) -> Self
[src]
pub fn title<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn description<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn payload<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn provider_token<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn start_parameter<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn currency<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn prices<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<LabeledPrice, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<LabeledPrice, Global> as IntoIterator>::Item>,
pub fn provider_data<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn photo_url<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn photo_size<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn photo_width<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn photo_height<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn need_name(self, value: bool) -> Self
[src]
pub fn need_phone_number(self, value: bool) -> Self
[src]
pub fn need_email(self, value: bool) -> Self
[src]
pub fn need_shipping_address(self, value: bool) -> Self
[src]
pub fn send_phone_number_to_provider(self, value: bool) -> Self
[src]
pub fn send_email_to_provider(self, value: bool) -> Self
[src]
pub fn is_flexible(self, value: bool) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup(self, value: InlineKeyboardMarkup) -> Self
[src]
impl<P> SendLocationSetters for P where
P: HasPayload<Payload = SendLocation>,
[src]
P: HasPayload<Payload = SendLocation>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn latitude(self, value: f64) -> Self
[src]
pub fn longitude(self, value: f64) -> Self
[src]
pub fn horizontal_accuracy(self, value: f64) -> Self
[src]
pub fn live_period(self, value: u32) -> Self
[src]
pub fn heading(self, value: u16) -> Self
[src]
pub fn proximity_alert_radius(self, value: u32) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendMediaGroupSetters for P where
P: HasPayload<Payload = SendMediaGroup>,
[src]
P: HasPayload<Payload = SendMediaGroup>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn media<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<InputMedia, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<InputMedia, Global> as IntoIterator>::Item>,
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
impl<P> SendMessageSetters for P where
P: HasPayload<Payload = SendMessage>,
[src]
P: HasPayload<Payload = SendMessage>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn text<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn disable_web_page_preview(self, value: bool) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendPhotoSetters for P where
P: HasPayload<Payload = SendPhoto>,
[src]
P: HasPayload<Payload = SendPhoto>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn photo(self, value: InputFile) -> Self
[src]
pub fn caption<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn caption_entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendPollSetters for P where
P: HasPayload<Payload = SendPoll>,
[src]
P: HasPayload<Payload = SendPoll>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn question<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn options<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<String, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<String, Global> as IntoIterator>::Item>,
pub fn type_(self, value: PollType) -> Self
[src]
pub fn is_anonymous(self, value: bool) -> Self
[src]
pub fn allows_multiple_answers(self, value: bool) -> Self
[src]
pub fn correct_option_id(self, value: u8) -> Self
[src]
pub fn explanation<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn explanation_parse_mode(self, value: ParseMode) -> Self
[src]
pub fn explanation_entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn open_period(self, value: u16) -> Self
[src]
pub fn close_date(self, value: u64) -> Self
[src]
pub fn is_closed(self, value: bool) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendStickerSetters for P where
P: HasPayload<Payload = SendSticker>,
[src]
P: HasPayload<Payload = SendSticker>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn sticker(self, value: InputFile) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendVenueSetters for P where
P: HasPayload<Payload = SendVenue>,
[src]
P: HasPayload<Payload = SendVenue>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn latitude(self, value: f64) -> Self
[src]
pub fn longitude(self, value: f64) -> Self
[src]
pub fn title<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn address<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn foursquare_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn foursquare_type<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn google_place_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn google_place_type<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendVideoNoteSetters for P where
P: HasPayload<Payload = SendVideoNote>,
[src]
P: HasPayload<Payload = SendVideoNote>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn video_note(self, value: InputFile) -> Self
[src]
pub fn duration(self, value: u32) -> Self
[src]
pub fn length(self, value: u32) -> Self
[src]
pub fn thumb(self, value: InputFile) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendVideoSetters for P where
P: HasPayload<Payload = SendVideo>,
[src]
P: HasPayload<Payload = SendVideo>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn video(self, value: InputFile) -> Self
[src]
pub fn duration(self, value: u32) -> Self
[src]
pub fn width(self, value: u32) -> Self
[src]
pub fn height(self, value: u32) -> Self
[src]
pub fn thumb(self, value: InputFile) -> Self
[src]
pub fn caption<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn caption_entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn supports_streaming(self, value: bool) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SendVoiceSetters for P where
P: HasPayload<Payload = SendVoice>,
[src]
P: HasPayload<Payload = SendVoice>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn voice(self, value: InputFile) -> Self
[src]
pub fn caption<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn parse_mode(self, value: ParseMode) -> Self
[src]
pub fn caption_entities<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<MessageEntity, Global> as IntoIterator>::Item>,
pub fn duration(self, value: u32) -> Self
[src]
pub fn disable_notification(self, value: bool) -> Self
[src]
pub fn reply_to_message_id(self, value: i32) -> Self
[src]
pub fn allow_sending_without_reply(self, value: bool) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> SetChatAdministratorCustomTitleSetters for P where
P: HasPayload<Payload = SetChatAdministratorCustomTitle>,
[src]
P: HasPayload<Payload = SetChatAdministratorCustomTitle>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn custom_title<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
impl<P> SetChatDescriptionSetters for P where
P: HasPayload<Payload = SetChatDescription>,
[src]
P: HasPayload<Payload = SetChatDescription>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn description<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
impl<P> SetChatPermissionsSetters for P where
P: HasPayload<Payload = SetChatPermissions>,
[src]
P: HasPayload<Payload = SetChatPermissions>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn permissions(self, value: ChatPermissions) -> Self
[src]
impl<P> SetChatPhotoSetters for P where
P: HasPayload<Payload = SetChatPhoto>,
[src]
P: HasPayload<Payload = SetChatPhoto>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn photo(self, value: InputFile) -> Self
[src]
impl<P> SetChatStickerSetSetters for P where
P: HasPayload<Payload = SetChatStickerSet>,
[src]
P: HasPayload<Payload = SetChatStickerSet>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn sticker_set_name<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
impl<P> SetChatTitleSetters for P where
P: HasPayload<Payload = SetChatTitle>,
[src]
P: HasPayload<Payload = SetChatTitle>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn title<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
impl<P> SetGameScoreInlineSetters for P where
P: HasPayload<Payload = SetGameScoreInline>,
[src]
P: HasPayload<Payload = SetGameScoreInline>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn score(self, value: u64) -> Self
[src]
pub fn inline_message_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn force(self, value: bool) -> Self
[src]
pub fn disable_edit_message(self, value: bool) -> Self
[src]
impl<P> SetGameScoreSetters for P where
P: HasPayload<Payload = SetGameScore>,
[src]
P: HasPayload<Payload = SetGameScore>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn score(self, value: u64) -> Self
[src]
pub fn chat_id(self, value: u32) -> Self
[src]
pub fn message_id(self, value: i64) -> Self
[src]
pub fn force(self, value: bool) -> Self
[src]
pub fn disable_edit_message(self, value: bool) -> Self
[src]
impl<P> SetMyCommandsSetters for P where
P: HasPayload<Payload = SetMyCommands>,
[src]
P: HasPayload<Payload = SetMyCommands>,
pub fn commands<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<BotCommand, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<BotCommand, Global> as IntoIterator>::Item>,
impl<P> SetPassportDataErrorsSetters for P where
P: HasPayload<Payload = SetPassportDataErrors>,
[src]
P: HasPayload<Payload = SetPassportDataErrors>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn errors<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<PassportElementError, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<PassportElementError, Global> as IntoIterator>::Item>,
impl<P> SetStickerPositionInSetSetters for P where
P: HasPayload<Payload = SetStickerPositionInSet>,
[src]
P: HasPayload<Payload = SetStickerPositionInSet>,
pub fn sticker<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn position(self, value: u32) -> Self
[src]
impl<P> SetStickerSetThumbSetters for P where
P: HasPayload<Payload = SetStickerSetThumb>,
[src]
P: HasPayload<Payload = SetStickerSetThumb>,
pub fn name<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn thumb(self, value: InputFile) -> Self
[src]
impl<P> SetWebhookSetters for P where
P: HasPayload<Payload = SetWebhook>,
[src]
P: HasPayload<Payload = SetWebhook>,
pub fn url<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn certificate(self, value: InputFile) -> Self
[src]
pub fn ip_address<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn max_connections(self, value: u8) -> Self
[src]
pub fn allowed_updates<T>(self, value: T) -> Self where
T: IntoIterator<Item = <Vec<AllowedUpdate, Global> as IntoIterator>::Item>,
[src]
T: IntoIterator<Item = <Vec<AllowedUpdate, Global> as IntoIterator>::Item>,
pub fn drop_pending_updates(self, value: bool) -> Self
[src]
impl<P> StopMessageLiveLocationInlineSetters for P where
P: HasPayload<Payload = StopMessageLiveLocationInline>,
[src]
P: HasPayload<Payload = StopMessageLiveLocationInline>,
pub fn inline_message_id<T>(self, value: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
pub fn latitude(self, value: f64) -> Self
[src]
pub fn longitude(self, value: f64) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> StopMessageLiveLocationSetters for P where
P: HasPayload<Payload = StopMessageLiveLocation>,
[src]
P: HasPayload<Payload = StopMessageLiveLocation>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
pub fn latitude(self, value: f64) -> Self
[src]
pub fn longitude(self, value: f64) -> Self
[src]
pub fn reply_markup<T>(self, value: T) -> Self where
T: Into<ReplyMarkup>,
[src]
T: Into<ReplyMarkup>,
impl<P> StopPollSetters for P where
P: HasPayload<Payload = StopPoll>,
[src]
P: HasPayload<Payload = StopPoll>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
pub fn reply_markup(self, value: InlineKeyboardMarkup) -> Self
[src]
impl<T> Tap for T
pub fn tap(self, func: impl FnOnce(&Self)) -> Self
pub fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self
pub fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
Self: Borrow<B>,
B: ?Sized,
pub fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
Self: BorrowMut<B>,
B: ?Sized,
pub fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
Self: AsRef<R>,
R: ?Sized,
pub fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
Self: AsMut<R>,
R: ?Sized,
pub fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self where
Self: Deref<Target = T>,
T: ?Sized,
Self: Deref<Target = T>,
T: ?Sized,
pub fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self where
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
pub fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
pub fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
pub fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
Self: Borrow<B>,
B: ?Sized,
pub fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
Self: BorrowMut<B>,
B: ?Sized,
pub fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
Self: AsRef<R>,
R: ?Sized,
pub fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
Self: AsMut<R>,
R: ?Sized,
pub fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self where
Self: Deref<Target = T>,
T: ?Sized,
Self: Deref<Target = T>,
T: ?Sized,
pub fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self where
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
impl<T> Tap for T
pub fn tap<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
F: FnOnce(&Self) -> R,
pub fn tap_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
F: FnOnce(&Self) -> R,
pub fn tap_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
F: FnOnce(&mut Self) -> R,
pub fn tap_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
F: FnOnce(&mut Self) -> R,
impl<T, U> TapAsRef<U> for T where
U: ?Sized,
U: ?Sized,
pub fn tap_ref<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Self: AsRef<T>,
F: FnOnce(&T) -> R,
pub fn tap_ref_dbg<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Self: AsRef<T>,
F: FnOnce(&T) -> R,
pub fn tap_ref_mut<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
pub fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
impl<T, U> TapBorrow<U> for T where
U: ?Sized,
U: ?Sized,
pub fn tap_borrow<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Self: Borrow<T>,
F: FnOnce(&T) -> R,
pub fn tap_borrow_dbg<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Self: Borrow<T>,
F: FnOnce(&T) -> R,
pub fn tap_borrow_mut<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
pub fn tap_borrow_mut_dbg<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
impl<T> TapDeref for T
pub fn tap_deref<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Self: Deref,
F: FnOnce(&Self::Target) -> R,
pub fn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Self: Deref,
F: FnOnce(&Self::Target) -> R,
pub fn tap_deref_mut<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
pub fn tap_deref_mut_dbg<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
impl<T> TryConv for T
impl<T> TryConv for T
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<P> UnbanChatMemberSetters for P where
P: HasPayload<Payload = UnbanChatMember>,
[src]
P: HasPayload<Payload = UnbanChatMember>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn user_id(self, value: i64) -> Self
[src]
pub fn only_if_banned(self, value: bool) -> Self
[src]
impl<P> UnpinAllChatMessagesSetters for P where
P: HasPayload<Payload = UnpinAllChatMessages>,
[src]
P: HasPayload<Payload = UnpinAllChatMessages>,
impl<P> UnpinChatMessageSetters for P where
P: HasPayload<Payload = UnpinChatMessage>,
[src]
P: HasPayload<Payload = UnpinChatMessage>,
pub fn chat_id<T>(self, value: T) -> Self where
T: Into<ChatId>,
[src]
T: Into<ChatId>,
pub fn message_id(self, value: i32) -> Self
[src]
impl<P> UploadStickerFileSetters for P where
P: HasPayload<Payload = UploadStickerFile>,
[src]
P: HasPayload<Payload = UploadStickerFile>,