pub struct SendInvoice { /* private fields */ }Expand description
Builder for the sendInvoice method.
Implementations§
Source§impl SendInvoice
impl SendInvoice
Sourcepub fn provider_token(self, t: impl Into<String>) -> Self
pub fn provider_token(self, t: impl Into<String>) -> Self
Sets the payment provider token. Not required for Telegram Stars (XTR).
Sourcepub fn need_shipping_address(self, v: bool) -> Self
pub fn need_shipping_address(self, v: bool) -> Self
Requests the buyer’s shipping address during checkout.
Sourcepub fn is_flexible(self, v: bool) -> Self
pub fn is_flexible(self, v: bool) -> Self
Indicates that the final price depends on the shipping method.
Sourcepub fn reply_markup(self, m: InlineKeyboardMarkup) -> Self
pub fn reply_markup(self, m: InlineKeyboardMarkup) -> Self
Attaches a reply markup (inline keyboard, reply keyboard, etc.).
Trait Implementations§
Source§impl IntoFuture for SendInvoice
impl IntoFuture for SendInvoice
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SendInvoice as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SendInvoice as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for SendInvoice
impl !RefUnwindSafe for SendInvoice
impl Send for SendInvoice
impl Sync for SendInvoice
impl Unpin for SendInvoice
impl UnsafeUnpin for SendInvoice
impl !UnwindSafe for SendInvoice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more