caldir_core/event/instance_id/
event_uid.rs1#[derive(Debug, Clone, PartialEq, Eq, Hash)]
3pub struct EventUid(String);
4
5impl EventUid {
6 pub fn new(uid: impl Into<String>) -> Self {
7 EventUid(uid.into())
8 }
9
10 pub fn as_str(&self) -> &str {
11 &self.0
12 }
13}