elasticsearch_dsl/search/response/
error_cause.rs1use crate::{util::ShouldSkip, Map};
2use serde_json::Value;
3
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
6pub struct ErrorCause {
7 pub caused_by: Option<Box<ErrorCause>>,
9
10 pub reason: Option<String>,
12
13 #[serde(skip_serializing_if = "ShouldSkip::should_skip", default)]
15 pub root_cause: Vec<ErrorCause>,
16
17 pub stack_trace: Option<String>,
19
20 #[serde(skip_serializing_if = "ShouldSkip::should_skip", default)]
22 pub suppressed: Vec<ErrorCause>,
23
24 #[serde(rename = "type")]
26 pub ty: Option<String>,
27
28 #[serde(skip_serializing_if = "ShouldSkip::should_skip", default, flatten)]
30 pub additional_details: Map<String, Value>,
31}