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: Stringdescription: Stringpayload: Stringprovider_token: Stringcurrency: Stringprices: 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

Create a builder for building InputInvoiceMessageContent. On the builder, call .title(...), .description(...), .payload(...), .provider_token(...), .currency(...), .prices(...), .max_tip_amount(...)(optional), .suggested_tip_amounts(...)(optional), .provider_data(...)(optional), .photo_url(...)(optional), .photo_size(...)(optional), .photo_width(...)(optional), .photo_height(...)(optional), .need_name(...)(optional), .need_phone_number(...)(optional), .need_email(...)(optional), .need_shipping_address(...)(optional), .send_phone_number_to_provider(...)(optional), .send_email_to_provider(...)(optional), .is_flexible(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of InputInvoiceMessageContent.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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 !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.