aboutsummaryrefslogtreecommitdiff
path: root/common/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/lib.rs')
-rw-r--r--common/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index 74476fe..43adfba 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -3,6 +3,7 @@
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2025 metamuffin <metamuffin.org>
*/
+#![feature(array_try_map)]
pub mod api;
pub mod config;
pub mod helpers;
@@ -26,6 +27,11 @@ use std::{
)]
pub struct NodeID(pub [u8; 32]);
+pub enum NodeIDOrSlug {
+ ID(NodeID),
+ Slug(String),
+}
+
#[derive(Debug, Clone, Deserialize, Serialize, Default, Encode, Decode)]
pub struct Node {
#[serde(default)]