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