mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-13 12:32:55 +00:00
14 lines
392 B
Rust
14 lines
392 B
Rust
use std::collections::BTreeMap;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::schema::Value;
|
|
|
|
/// 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(Debug, Deserialize, Serialize)]
|
|
pub struct NamedFieldDocument(pub BTreeMap<String, Vec<Value>>);
|