| use serde::{Deserialize, Serialize}; | |
| pub struct MemoryBucket { | |
| pub id: String, | |
| pub git_hash: String, | |
| pub parent_hash: String, | |
| pub timestamp: String, | |
| pub author: Author, | |
| pub branch: String, | |
| pub bucket_type: String, | |
| pub summary: String, | |
| pub keywords: Vec<String>, | |
| pub entities: Vec<String>, | |
| pub files: Vec<FileEntry>, | |
| pub related: Vec<String>, | |
| pub trust: String, | |
| pub immutable: bool, | |
| pub worm_seal: WormSeal, | |
| } | |
| pub struct Author { | |
| pub id: String, | |
| pub pubkey: String, | |
| } | |
| pub struct FileEntry { | |
| pub path: String, | |
| pub role: String, | |
| pub diff_hash: String, | |
| } | |
| pub struct WormSeal { | |
| pub algorithm: String, | |
| pub signature: String, | |
| pub signer: String, | |
| pub audit_ref: String, | |
| } | |