Struct frankenstein::objects::InputInvoiceMessageContent [−][src]
pub struct InputInvoiceMessageContent {Show 20 fields
pub title: String,
pub description: String,
pub payload: String,
pub provider_token: String,
pub currency: String,
pub prices: Vec<LabeledPrice>,
pub max_tip_amount: Option<u32>,
pub suggested_tip_amounts: Option<Vec<u32>>,
pub provider_data: Option<String>,
pub photo_url: Option<String>,
pub photo_size: Option<u32>,
pub photo_width: Option<u32>,
pub photo_height: Option<u32>,
pub need_name: Option<bool>,
pub need_phone_number: Option<bool>,
pub need_email: Option<bool>,
pub need_shipping_address: Option<bool>,
pub send_phone_number_to_provider: Option<bool>,
pub send_email_to_provider: Option<bool>,
pub is_flexible: Option<bool>,
}
Fields
title: String
description: String
payload: String
provider_token: String
currency: String
prices: Vec<LabeledPrice>
max_tip_amount: Option<u32>
suggested_tip_amounts: Option<Vec<u32>>
provider_data: Option<String>
photo_url: Option<String>
photo_size: Option<u32>
photo_width: Option<u32>
photo_height: Option<u32>
need_name: Option<bool>
need_phone_number: Option<bool>
need_email: Option<bool>
need_shipping_address: Option<bool>
send_phone_number_to_provider: Option<bool>
send_email_to_provider: Option<bool>
is_flexible: Option<bool>
Implementations
pub fn new(
title: String,
description: String,
payload: String,
provider_token: String,
currency: String,
prices: Vec<LabeledPrice>
) -> Self
pub fn set_send_phone_number_to_provider(
&mut self,
send_phone_number_to_provider: Option<bool>
)
pub fn prices(&self) -> Vec<LabeledPrice>ⓘ
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for InputInvoiceMessageContent
impl Send for InputInvoiceMessageContent
impl Sync for InputInvoiceMessageContent
impl Unpin for InputInvoiceMessageContent
impl UnwindSafe for InputInvoiceMessageContent
Blanket Implementations
Mutably borrows from an owned value. Read more