artifacts/models/
http_validation_error.rs

1use crate::models;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
5#[cfg_attr(feature = "specta", derive(specta::Type))]
6pub struct HttpValidationError {
7    #[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
8    pub detail: Option<Vec<models::ValidationError>>,
9}
10
11impl HttpValidationError {
12    pub fn new() -> HttpValidationError {
13        HttpValidationError { detail: None }
14    }
15}