1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
use serde::{Deserialize, Serialize};
use chrono::{DateTime, Utc};
use url::Url;
use crate::item::SyncStatus;
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Event {
uid: String,
name: String,
sync_status: SyncStatus,
}
impl Event {
pub fn new() -> Self {
unimplemented!();
}
pub fn url(&self) -> &Url {
unimplemented!();
}
pub fn uid(&self) -> &str {
&self.uid
}
pub fn name(&self) -> &str {
&self.name
}
pub fn ical_prod_id(&self) -> &str {
unimplemented!()
}
pub fn creation_date(&self) -> Option<&DateTime<Utc>> {
unimplemented!()
}
pub fn last_modified(&self) -> &DateTime<Utc> {
unimplemented!()
}
pub fn sync_status(&self) -> &SyncStatus {
&self.sync_status
}
pub fn set_sync_status(&mut self, new_status: SyncStatus) {
self.sync_status = new_status;
}
#[cfg(any(test, feature = "integration_tests"))]
pub fn has_same_observable_content_as(&self, _other: &Event) -> bool {
unimplemented!();
}
}