authentik_client/models/
validation_error.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.3
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ValidationError : Validation Error
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ValidationError {
17    #[serde(rename = "non_field_errors", skip_serializing_if = "Option::is_none")]
18    pub non_field_errors: Option<Vec<String>>,
19    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
20    pub code: Option<String>,
21}
22
23impl ValidationError {
24    /// Validation Error
25    pub fn new() -> ValidationError {
26        ValidationError {
27            non_field_errors: None,
28            code: None,
29        }
30    }
31}