moved TallyID into it's own file

Tally id now ignores tha case since it's basicly a hex value as a
string. Reason for that is that if a user inputs an id.
This commit is contained in:
2025-05-12 21:35:20 +02:00
parent b6b66a7e5b
commit 47f19f3c54
3 changed files with 50 additions and 12 deletions

View File

@@ -2,19 +2,10 @@ use serde::{Deserialize, Serialize};
use std::{
collections::{HashMap, HashSet},
error::Error,
fmt::Display,
};
use tokio::fs;
/// Represents the ID that is stored on the Tally
#[derive(PartialEq, Eq, Deserialize, Serialize, Hash, Clone, PartialOrd, Ord)]
pub struct TallyID(pub String);
impl Display for TallyID {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}
use crate::tally_id::TallyID;
/// Represents a single day that IDs can attend
#[derive(Deserialize, Serialize)]