caldir-core 0.17.1

Core library for caldir calendar storage, sync, and provider protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Recurring events share the same UID (stupid design)
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct EventUid(String);

impl EventUid {
    pub fn new(uid: impl Into<String>) -> Self {
        EventUid(uid.into())
    }

    pub fn as_str(&self) -> &str {
        &self.0
    }
}