mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-11 01:53:23 +01:00
23 lines
311 B
Rust
23 lines
311 B
Rust
|
use rkyv::{
|
||
|
Archive,
|
||
|
Serialize,
|
||
|
Deserialize,
|
||
|
};
|
||
|
|
||
|
use super::{
|
||
|
AllocAdapter,
|
||
|
DB,
|
||
|
};
|
||
|
|
||
|
#[derive(Archive, Serialize, Deserialize)]
|
||
|
pub struct Resource {
|
||
|
uuid: u128,
|
||
|
id: String,
|
||
|
name_idx: u64,
|
||
|
description_idx: u64,
|
||
|
}
|
||
|
|
||
|
pub struct ResourceDB {
|
||
|
db: DB<AllocAdapter<Resource>>,
|
||
|
}
|