1 2 3 4 5 6 7 8 9 10 11 12
use crate::schema::Value; use serde::Serialize; use std::collections::BTreeMap; /// Internal representation of a document used for JSON /// serialization. /// /// A `NamedFieldDocument` is a simple representation of a document /// as a `BTreeMap<String, Vec<Value>>`. /// #[derive(Serialize)] pub struct NamedFieldDocument(pub BTreeMap<String, Vec<Value>>);