summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/chunkid.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/chunkid.rs b/src/chunkid.rs
index 771cc8c..ba301a1 100644
--- a/src/chunkid.rs
+++ b/src/chunkid.rs
@@ -1,4 +1,6 @@
+use serde::Serialize;
use std::fmt;
+use std::hash::Hash;
use std::str::FromStr;
use uuid::Uuid;
@@ -17,7 +19,7 @@ use uuid::Uuid;
///
/// Because every identifier is meant to be different, there is no
/// default value, since default values should be identical.
-#[derive(Debug, PartialEq, Clone)]
+#[derive(Debug, Eq, PartialEq, Clone, Hash, Serialize)]
pub struct ChunkId {
id: String,
}