mintdb 0.1.0-beta.3

MintDB is an open source document based database built in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::collections::BTreeMap;

use serde::{Serialize, Deserialize};
use serde_json::Value;


#[derive(Serialize, Deserialize, Clone, Debug, Default)]
pub struct Document {
    pub id: String,
    pub data: BTreeMap<String, Value>
}
impl Document {
    pub fn new(id: &str) -> Self {
        Document { id: id.to_string(), ..Default::default() }
    }
}