pub struct Invoice {
pub title: String,
pub description: String,
pub start_parameter: String,
pub currency: String,
pub total_amount: i32,
}
Expand description
This object contains basic information about an invoice.
Fields§
§title: String
Product name.
description: String
Product description.
start_parameter: String
Unique bot deep-linking parameter that can be used to generate this invoice.
currency: String
Three-letter ISO 4217 currency code.
total_amount: i32
Total price in the smallest units of the currency (integer, not
float/double). For example, for a price of US$ 1.45
pass amount = 145
. See the exp parameter in currencies.json
, it shows the number
of digits past the decimal point for each currency (2 for the
majority of currencies).
Trait Implementations§
source§impl<'de> Deserialize<'de> for Invoice
impl<'de> Deserialize<'de> for Invoice
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Invoice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Invoice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Invoice> for Invoice
impl PartialEq<Invoice> for Invoice
source§impl Serialize for Invoice
impl Serialize for Invoice
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Invoice
impl StructuralEq for Invoice
impl StructuralPartialEq for Invoice
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.