Struct tdlib_types::types::Invoice
source · pub struct Invoice {
pub currency: String,
pub price_parts: Vec<LabeledPricePart>,
pub is_test: bool,
pub need_name: bool,
pub need_phone_number: bool,
pub need_email_address: bool,
pub need_shipping_address: bool,
pub send_phone_number_to_provider: bool,
pub send_email_address_to_provider: bool,
pub is_flexible: bool,
}
Expand description
Product invoice
Fields
currency: String
ISO 4217 currency code
price_parts: Vec<LabeledPricePart>
A list of objects used to calculate the total price of the product
is_test: bool
True, if the payment is a test payment
need_name: bool
True, if the user’s name is needed for payment
need_phone_number: bool
True, if the user’s phone number is needed for payment
need_email_address: bool
True, if the user’s email address is needed for payment
need_shipping_address: bool
True, if the user’s shipping address is needed for payment
send_phone_number_to_provider: bool
True, if the user’s phone number will be sent to the provider
send_email_address_to_provider: bool
True, if the user’s email address will be sent to the provider
is_flexible: bool
True, if the total price depends on the shipping method
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Invoice
impl<'de> Deserialize<'de> for Invoice
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
Auto Trait Implementations
impl RefUnwindSafe for Invoice
impl Send for Invoice
impl Sync for Invoice
impl Unpin for Invoice
impl UnwindSafe for Invoice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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