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

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