murdock_api/models/
validation_error.rs

1/*
2 * Murdock API
3 *
4 * This is the Murdock API
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct ValidationError {
16    #[serde(rename = "loc")]
17    pub loc: Vec<crate::models::LocationInner>,
18    #[serde(rename = "msg")]
19    pub msg: String,
20    #[serde(rename = "type")]
21    pub _type: String,
22}
23
24impl ValidationError {
25    pub fn new(loc: Vec<crate::models::LocationInner>, msg: String, _type: String) -> ValidationError {
26        ValidationError {
27            loc,
28            msg,
29            _type,
30        }
31    }
32}
33
34