gddb 0.3.1

GDDB is a superfast in-memory database designed for use in Godot.
Documentation
use crate::prelude::*;

pub trait RecordCheck: PartialEq + Default + Display {}
impl<T> RecordCheck for T where T: PartialEq + Default + Display {}

#[derive(Clone, Hash, Eq, PartialEq, Debug, Serialize, Deserialize)]
pub struct Record {
    pub uuid: String,
    pub model: String,
    pub attributes: String,
}

impl Record {
    pub fn new(model: String) -> Self {
        let uuid = Uuid::new_v4().to_string();

        Self {
            uuid,
            model,
            attributes: "".into(),
        }
    }
}