[−][src]Struct tbot::methods::SendInvoice
Sends an invoice.
Reflects the sendInvoice
method.
Methods
impl<'a> SendInvoice<'a>
[src]
pub fn provider_data(self, provider_data: &'a str) -> Self
[src]
Configures data for your payment provider.
Reflects the provider_data
parameter.
pub fn photo(self, photo: Photo<'a>) -> Self
[src]
Configures a photo for the invoice.
Reflects the photo_url
, photo_width
and photo_height
parameters.
pub fn name(self, is_needed: Requirement) -> Self
[src]
Configures if the user must specify their name.
Reflects the need_name
parameters.
pub fn phone_number(self, is_needed: Requirement) -> Self
[src]
Configures if the user must specify their phone number.
Reflects the need_phone_number
parameter.
pub fn email(self, is_needed: Requirement) -> Self
[src]
Configures if the user must specify their email.
Reflects the need_email
parameter.
pub fn shipping_address(self, is_needed: Requirement) -> Self
[src]
Configures if the user must specify their shipping address.
Reflects the need_shipping_address
parameter.
pub fn should_share_phone(self, should_send: SendToProviderState) -> Self
[src]
Configures if the user's phone must be sent to your payment provider.
Reflects the send_phone_number_to_provider
parameter.
pub fn should_share_email(self, should_send: SendToProviderState) -> Self
[src]
Configures if the user's email must be sent to your payment provider.
Reflects the send_email_to_provider
parameter.
pub fn flexibility(self, flexibility: Flexibility) -> Self
[src]
Configures if the final price depends on the shipping method.
Reflects the is_flexible
parameter.
pub fn notification(self, state: NotificationState) -> Self
[src]
Configures if the message will be sent silently.
Reflects the disable_notification
parameter.
pub fn reply_to_message_id(self, id: Id) -> Self
[src]
Configures which message this invoice is sent in reply to.
Reflects the reply_to_message_id
parameter.
pub fn reply_markup(self, markup: Keyboard<'a>) -> Self
[src]
Configures a keyboard for the message.
Reflects the reply_markup
parameter.
impl<'_> SendInvoice<'_>
[src]
pub async fn call(self) -> Result<Message, MethodCall>
[src]
Calls the method.
Trait Implementations
impl<'a> Clone for SendInvoice<'a>
[src]
fn clone(&self) -> SendInvoice<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for SendInvoice<'a>
[src]
impl<'a> Serialize for SendInvoice<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SendInvoice<'a>
impl<'a> Send for SendInvoice<'a>
impl<'a> Sync for SendInvoice<'a>
impl<'a> Unpin for SendInvoice<'a>
impl<'a> !UnwindSafe for SendInvoice<'a>
Blanket Implementations
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,