about summary refs log tree commit diff
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs
index 11431e5..a3cc064 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -10,6 +10,7 @@ use axum::{
 use sha2::{Digest, Sha256};
 use time::{format_description::FormatItem, macros::format_description, OffsetDateTime};
 
+#[derive(Debug, Clone)]
 pub struct RemoteIp(String);
 
 #[async_trait]
@@ -44,6 +45,7 @@ impl Deref for RemoteIp {
 
 const FMT: &[FormatItem<'_>] = format_description!("[year]-[month]-[day]");
 
+#[derive(Debug, Copy, Clone)]
 pub struct SessionId([u8; 4]);
 
 #[async_trait]
@@ -89,6 +91,7 @@ impl fmt::Display for SessionId {
 	}
 }
 
+#[derive(Debug, Clone)]
 pub struct Referer(String);
 
 #[async_trait]