btcpay_client/models/
invoice_type.rs

1/*
2 * BTCPay Greenfield API
3 *
4 * A full API to use your BTCPay Server
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// InvoiceType : 
12
13/// 
14#[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