pub trait SendInvoiceSetters: HasPayload<Payload = SendInvoice> + Sized {
Show 28 methods // Provided methods fn chat_id<T>(self, value: T) -> Self where T: Into<Recipient> { ... } fn title<T>(self, value: T) -> Self where T: Into<String> { ... } fn description<T>(self, value: T) -> Self where T: Into<String> { ... } fn payload<T>(self, value: T) -> Self where T: Into<String> { ... } fn provider_token<T>(self, value: T) -> Self where T: Into<String> { ... } fn currency<T>(self, value: T) -> Self where T: Into<String> { ... } fn prices<T>(self, value: T) -> Self where T: IntoIterator<Item = LabeledPrice> { ... } fn message_thread_id(self, value: i32) -> Self { ... } fn max_tip_amount(self, value: u32) -> Self { ... } fn suggested_tip_amounts<T>(self, value: T) -> Self where T: IntoIterator<Item = u32> { ... } fn start_parameter<T>(self, value: T) -> Self where T: Into<String> { ... } fn provider_data<T>(self, value: T) -> Self where T: Into<String> { ... } fn photo_url(self, value: Url) -> Self { ... } fn photo_size<T>(self, value: T) -> Self where T: Into<String> { ... } fn photo_width<T>(self, value: T) -> Self where T: Into<String> { ... } fn photo_height<T>(self, value: T) -> Self where T: Into<String> { ... } fn need_name(self, value: bool) -> Self { ... } fn need_phone_number(self, value: bool) -> Self { ... } fn need_email(self, value: bool) -> Self { ... } fn need_shipping_address(self, value: bool) -> Self { ... } fn send_phone_number_to_provider(self, value: bool) -> Self { ... } fn send_email_to_provider(self, value: bool) -> Self { ... } fn is_flexible(self, value: bool) -> Self { ... } fn disable_notification(self, value: bool) -> Self { ... } fn protect_content(self, value: bool) -> Self { ... } fn reply_to_message_id(self, value: i32) -> Self { ... } fn allow_sending_without_reply(self, value: bool) -> Self { ... } fn reply_markup(self, value: InlineKeyboardMarkup) -> Self { ... }
}
Expand description

Setters for fields of SendInvoice

Provided Methods§

source

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

Setter for chat_id field.

source

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

Setter for title field.

source

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

Setter for description field.

source

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

Setter for payload field.

source

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

Setter for provider_token field.

source

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

Setter for currency field.

source

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

Setter for prices field.

source

fn message_thread_id(self, value: i32) -> 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) -> Selfwhere T: IntoIterator<Item = u32>,

Setter for suggested_tip_amounts field.

source

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

Setter for start_parameter field.

source

fn provider_data<T>(self, value: T) -> Selfwhere 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<T>(self, value: T) -> Selfwhere T: Into<String>,

Setter for photo_size field.

source

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

Setter for photo_width field.

source

fn photo_height<T>(self, value: T) -> Selfwhere 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

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_to_message_id(self, value: i32) -> Self

Setter for reply_to_message_id field.

source

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

Setter for allow_sending_without_reply field.

source

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

Setter for reply_markup field.

Implementors§

source§

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