cortex_client/models/error.rs
1/*
2 * Cortex API
3 *
4 * API for Cortex, a powerful observable analysis and active response engine.
5 *
6 * The version of the OpenAPI document: 3.1.8
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 Error {
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 error message.
20 #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
21 pub message: Option<String>,
22}
23
24impl Error {
25 pub fn new() -> Error {
26 Error {
27 r#type: None,
28 message: None,
29 }
30 }
31}
32