elasticsearch_dsl/search/response/nested_identity.rs
1use crate::util::ShouldSkip;
2
3/// Nested document metadata
4#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
5pub struct NestedIdentity {
6 /// Field
7 pub field: String,
8
9 /// Offset
10 pub offset: u64,
11
12 /// Nested document metadata
13 #[serde(skip_serializing_if = "ShouldSkip::should_skip", rename = "_nested")]
14 pub nested: Option<Box<NestedIdentity>>,
15}