btcpay_client/models/
invoice_type.rs1#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum InvoiceType {
16 #[serde(rename = "Standard")]
17 Standard,
18 #[serde(rename = "TopUp")]
19 TopUp,
20
21}
22
23impl ToString for InvoiceType {
24 fn to_string(&self) -> String {
25 match self {
26 Self::Standard => String::from("Standard"),
27 Self::TopUp => String::from("TopUp"),
28 }
29 }
30}
31
32impl Default for InvoiceType {
33 fn default() -> InvoiceType {
34 Self::Standard
35 }
36}
37
38
39
40