Skip to main content

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
14
15
16#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17pub struct RootCause {
18    #[serde(rename = "reason")]
19    pub reason: String,
20    #[serde(rename = "type")]
21    pub r#type: String,
22}
23
24impl RootCause {
25    
26    pub fn new(reason: String, r#type: String) -> RootCause {
27        RootCause {
28            reason,
29            r#type,
30        }
31    }
32}