caldir_core/remote/event.rs
1use chrono::{DateTime, Utc};
2
3use crate::Event;
4
5pub struct RemoteEvent(Event);
6
7impl RemoteEvent {
8 pub fn new(event: Event) -> Self {
9 Self(event)
10 }
11
12 pub fn modified_at(&self) -> Option<DateTime<Utc>> {
13 self.0.last_modified
14 }
15
16 pub fn event(&self) -> &Event {
17 &self.0
18 }
19}