murdock_api/models/
validation_error.rs1#[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