From db511d3fe50f05329615f718515fab1b80d9e06a Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 29 Jan 2025 18:03:06 +0100 Subject: no direct redb access --- common/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'common/src/lib.rs') diff --git a/common/src/lib.rs b/common/src/lib.rs index a72f345..05d1573 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -17,10 +17,15 @@ use bincode::{Decode, Encode}; use serde::{Deserialize, Serialize}; use std::{collections::BTreeMap, path::PathBuf}; +#[derive( + Clone, Copy, Debug, Serialize, Deserialize, Encode, Decode, PartialEq, Eq, PartialOrd, Ord, +)] +pub struct NodeID(pub [u8; 32]); + #[derive(Debug, Clone, Deserialize, Serialize, Default, Encode, Decode)] pub struct Node { pub slug: String, - pub parents: Vec, + pub parents: Vec, pub kind: Option, pub poster: Option, pub backdrop: Option, -- cgit v1.2.3-70-g09d2