Struct frankenstein::objects::InputInvoiceMessageContent
source · [−]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
sourceimpl InputInvoiceMessageContent
impl InputInvoiceMessageContent
sourcepub fn builder(
) -> InputInvoiceMessageContentBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> InputInvoiceMessageContentBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
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
sourceimpl Clone for InputInvoiceMessageContent
impl Clone for InputInvoiceMessageContent
sourcefn clone(&self) -> InputInvoiceMessageContent
fn clone(&self) -> InputInvoiceMessageContent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InputInvoiceMessageContent
impl Debug for InputInvoiceMessageContent
sourceimpl<'de> Deserialize<'de> for InputInvoiceMessageContent
impl<'de> Deserialize<'de> for InputInvoiceMessageContent
sourcefn 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
sourceimpl PartialEq<InputInvoiceMessageContent> for InputInvoiceMessageContent
impl PartialEq<InputInvoiceMessageContent> for InputInvoiceMessageContent
sourcefn eq(&self, other: &InputInvoiceMessageContent) -> bool
fn eq(&self, other: &InputInvoiceMessageContent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InputInvoiceMessageContent) -> bool
fn ne(&self, other: &InputInvoiceMessageContent) -> bool
This method tests for !=
.
impl StructuralPartialEq for InputInvoiceMessageContent
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more