authentik_client/models/
validation_error.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[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    pub fn new() -> ValidationError {
26        ValidationError {
27            non_field_errors: None,
28            code: None,
29        }
30    }
31}