thehive_client/models/
error_response.rs

1/*
2 * TheHive API
3 *
4 * Comprehensive OpenAPI specification inferred from the TheHive4py client library. This API allows interaction with TheHive platform for managing alerts, cases, observables, tasks, users, and other entities. 
5 *
6 * The version of the OpenAPI document: 2.1.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ErrorResponse {
16    /// The type of error.
17    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<String>,
19    /// A human-readable message providing more details about the error.
20    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
21    pub message: Option<String>,
22}
23
24impl ErrorResponse {
25    pub fn new() -> ErrorResponse {
26        ErrorResponse {
27            r#type: None,
28            message: None,
29        }
30    }
31}
32