Skip to main content

firefly_iii/models/
data_destroy_object.rs

1/*
2 * Firefly III API v6.4.14
3 *
4 * This is the documentation of the Firefly III API. Please report any bugs or issues. You may use the \"Authorize\" button to try the API below. <br><br> Please keep in mind that the demo site does **not** accept requests from `curl`, `colly`, `wget`, etc. You must use a browser or a tool like Insomnia to make your test requests. <br><br> To learn more about the idiosyncrasies of this API, please read about the API in the [Firefly III API documentation](https://docs.firefly-iii.org/references/firefly-iii/api/). <br><br> <small>This file was last generated on 2025-12-26 @ 15:17:41 (Europe/Amsterdam)</small>
5 *
6 * The version of the OpenAPI document: v6.4.14
7 * Contact: james@firefly-iii.org
8 * Generated by: https://openapi-generator.tech
9 */
10
11#![allow(unused_imports)]
12
13use crate::models::{self, *};
14use std::fmt;
15
16///
17#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
18pub enum DataDestroyObject {
19    #[serde(rename = "not_assets_liabilities")]
20    NotAssetsLiabilities,
21    #[serde(rename = "budgets")]
22    Budgets,
23    #[serde(rename = "bills")]
24    Bills,
25    #[serde(rename = "piggy_banks")]
26    PiggyBanks,
27    #[serde(rename = "rules")]
28    Rules,
29    #[serde(rename = "recurring")]
30    Recurring,
31    #[serde(rename = "categories")]
32    Categories,
33    #[serde(rename = "tags")]
34    Tags,
35    #[serde(rename = "object_groups")]
36    ObjectGroups,
37    #[serde(rename = "accounts")]
38    Accounts,
39    #[serde(rename = "asset_accounts")]
40    AssetAccounts,
41    #[serde(rename = "expense_accounts")]
42    ExpenseAccounts,
43    #[serde(rename = "revenue_accounts")]
44    RevenueAccounts,
45    #[serde(rename = "liabilities")]
46    Liabilities,
47    #[serde(rename = "transactions")]
48    Transactions,
49    #[serde(rename = "withdrawals")]
50    Withdrawals,
51    #[serde(rename = "deposits")]
52    Deposits,
53    #[serde(rename = "transfers")]
54    Transfers,
55}
56
57impl std::fmt::Display for DataDestroyObject {
58    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
59        match self {
60            Self::NotAssetsLiabilities => write!(f, "not_assets_liabilities"),
61            Self::Budgets => write!(f, "budgets"),
62            Self::Bills => write!(f, "bills"),
63            Self::PiggyBanks => write!(f, "piggy_banks"),
64            Self::Rules => write!(f, "rules"),
65            Self::Recurring => write!(f, "recurring"),
66            Self::Categories => write!(f, "categories"),
67            Self::Tags => write!(f, "tags"),
68            Self::ObjectGroups => write!(f, "object_groups"),
69            Self::Accounts => write!(f, "accounts"),
70            Self::AssetAccounts => write!(f, "asset_accounts"),
71            Self::ExpenseAccounts => write!(f, "expense_accounts"),
72            Self::RevenueAccounts => write!(f, "revenue_accounts"),
73            Self::Liabilities => write!(f, "liabilities"),
74            Self::Transactions => write!(f, "transactions"),
75            Self::Withdrawals => write!(f, "withdrawals"),
76            Self::Deposits => write!(f, "deposits"),
77            Self::Transfers => write!(f, "transfers"),
78        }
79    }
80}
81
82impl std::default::Default for DataDestroyObject {
83    fn default() -> DataDestroyObject {
84        Self::NotAssetsLiabilities
85    }
86}