Trait SendInvoiceSetters

Source
pub trait SendInvoiceSetters: HasPayload<Payload = SendInvoice> + Sized {
Show 27 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: ThreadId) -> 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(self, value: u32) -> Self { ... } fn photo_width(self, value: u32) -> Self { ... } fn photo_height(self, value: u32) -> Self { ... } 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_parameters(self, value: ReplyParameters) -> 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) -> 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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