Skip to main content

firefly_iii/models/
validation_error_response_errors.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#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
17pub struct ValidationErrorResponseErrors {
18    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
19    pub email: Option<Vec<String>>,
20    #[serde(rename = "force", skip_serializing_if = "Option::is_none")]
21    pub force: Option<Vec<String>>,
22    #[serde(rename = "blocked", skip_serializing_if = "Option::is_none")]
23    pub blocked: Option<Vec<String>>,
24    #[serde(rename = "field", skip_serializing_if = "Option::is_none")]
25    pub field: Option<Vec<String>>,
26    #[serde(rename = "role", skip_serializing_if = "Option::is_none")]
27    pub role: Option<Vec<String>>,
28    #[serde(rename = "blocked_code", skip_serializing_if = "Option::is_none")]
29    pub blocked_code: Option<Vec<String>>,
30    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
31    pub name: Option<Vec<String>>,
32    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
33    pub r#type: Option<Vec<String>>,
34    #[serde(rename = "iban", skip_serializing_if = "Option::is_none")]
35    pub iban: Option<Vec<String>>,
36    #[serde(rename = "start", skip_serializing_if = "Option::is_none")]
37    pub start: Option<Vec<String>>,
38    #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
39    pub end: Option<Vec<String>>,
40    #[serde(rename = "date", skip_serializing_if = "Option::is_none")]
41    pub date: Option<Vec<String>>,
42}
43
44impl ValidationErrorResponseErrors {
45    pub fn new() -> ValidationErrorResponseErrors {
46        ValidationErrorResponseErrors {
47            email: None,
48            force: None,
49            blocked: None,
50            field: None,
51            role: None,
52            blocked_code: None,
53            name: None,
54            r#type: None,
55            iban: None,
56            start: None,
57            end: None,
58            date: None,
59        }
60    }
61}
62
63impl fmt::Display for ValidationErrorResponseErrors {
64    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
65        match serde_json::to_string(self) {
66            Ok(json) => write!(f, "{}", json),
67            Err(_) => write!(f, "{{{{}}}}"),
68        }
69    }
70}