2021-10-19 11:16:24 +02:00
|
|
|
use rkyv::{Archive, Serialize, Deserialize};
|
2021-10-13 04:57:40 +02:00
|
|
|
|
2022-03-08 18:56:03 +01:00
|
|
|
use crate::db::DB;
|
2021-10-27 17:53:00 +02:00
|
|
|
use crate::db::{AlignedAdapter, AllocAdapter};
|
2022-03-08 18:56:03 +01:00
|
|
|
use crate::db::RawDB;
|
2021-10-19 11:16:24 +02:00
|
|
|
use std::sync::Arc;
|
2021-10-20 18:37:50 +02:00
|
|
|
use crate::db::{Environment, DatabaseFlags};
|
|
|
|
use crate::db::Result;
|
2022-03-13 20:11:37 +01:00
|
|
|
use crate::resources::state::db::StateDB;
|
2021-10-13 04:57:40 +02:00
|
|
|
|
2021-10-20 18:37:50 +02:00
|
|
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
2021-10-13 04:57:40 +02:00
|
|
|
#[derive(Archive, Serialize, Deserialize)]
|
2021-10-20 18:37:50 +02:00
|
|
|
#[derive(serde::Serialize, serde::Deserialize)]
|
2021-10-13 04:57:40 +02:00
|
|
|
pub struct Resource {
|
|
|
|
uuid: u128,
|
|
|
|
id: String,
|
|
|
|
name_idx: u64,
|
|
|
|
description_idx: u64,
|
2021-10-19 11:16:24 +02:00
|
|
|
}
|