tbot/types/invoice.rs
1use serde::Deserialize;
2
3/// Represents an [`Invoice`].
4///
5/// [`Invoice`]: https://core.telegram.org/bots/api#invoice
6#[derive(Debug, PartialEq, Eq, Clone, Hash, Deserialize)]
7#[non_exhaustive]
8pub struct Invoice {
9 /// The title of the invoice.
10 pub title: String,
11 /// The description of the invoice.
12 pub description: String,
13 /// The start parameter of the invoice.
14 pub start_parameter: String,
15 /// The currency of the invoice.
16 pub currency: String,
17 /// The total amount of the invoice.
18 pub total_amount: u32,
19}