opensearch_client/query/root_cause.rs
1/*
2 * opensearch-client
3 *
4 * Rust Client for OpenSearch
5 *
6 * The version of the OpenAPI document: 3.1.0
7 * Contact: alberto.paro@gmail.com
8 * Generated by Paro OpenAPI Generator
9 */
10
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct RootCause {
15 #[serde(rename = "reason")]
16 pub reason: String,
17 #[serde(rename = "type")]
18 pub r#type: String,
19}
20
21impl RootCause {
22 pub fn new(reason: String, r#type: String) -> RootCause {
23 RootCause { reason, r#type }
24 }
25}