firefly_iii/models/user_blocked_code_property.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/// UserBlockedCodeProperty : If you say the user must be blocked, this will be the reason code.
17
18/// If you say the user must be blocked, this will be the reason code.
19#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
20pub enum UserBlockedCodeProperty {
21 #[serde(rename = "email_changed")]
22 EmailChanged,
23}
24
25impl std::fmt::Display for UserBlockedCodeProperty {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::EmailChanged => write!(f, "email_changed"),
29 }
30 }
31}
32
33impl std::default::Default for UserBlockedCodeProperty {
34 fn default() -> UserBlockedCodeProperty {
35 Self::EmailChanged
36 }
37}