firefly_iii/models/webhook_response.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/// WebhookResponse : Indicator for what Firefly III will deliver to the webhook URL.
17
18/// Indicator for what Firefly III will deliver to the webhook URL.
19#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
20pub enum WebhookResponse {
21 #[serde(rename = "TRANSACTIONS")]
22 Transactions,
23 #[serde(rename = "ACCOUNTS")]
24 Accounts,
25 #[serde(rename = "BUDGET")]
26 Budget,
27 #[serde(rename = "RELEVANT")]
28 Relevant,
29 #[serde(rename = "NONE")]
30 None,
31}
32
33impl std::fmt::Display for WebhookResponse {
34 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
35 match self {
36 Self::Transactions => write!(f, "TRANSACTIONS"),
37 Self::Accounts => write!(f, "ACCOUNTS"),
38 Self::Budget => write!(f, "BUDGET"),
39 Self::Relevant => write!(f, "RELEVANT"),
40 Self::None => write!(f, "NONE"),
41 }
42 }
43}
44
45impl std::default::Default for WebhookResponse {
46 fn default() -> WebhookResponse {
47 Self::Transactions
48 }
49}