Skip to main content

caldir_core/event/instance_id/
event_uid.rs

1// Recurring events share the same UID (stupid design)
2#[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}