Trait is closer to what caldav servers provide

This commit is contained in:
daladim 2021-03-22 22:06:43 +01:00
parent 7af147e417
commit 86f3566532
11 changed files with 122 additions and 94 deletions

View file

@ -4,6 +4,7 @@ use serde::{Deserialize, Serialize};
use chrono::{Utc, DateTime};
use crate::item::ItemId;
use crate::item::VersionTag;
/// TODO: implement Event one day.
/// This crate currently only supports tasks, not calendar events.
@ -12,6 +13,7 @@ pub struct Event {
id: ItemId,
name: String,
last_modified: DateTime<Utc>,
version_tag: VersionTag,
}
impl Event {
@ -26,4 +28,8 @@ impl Event {
pub fn last_modified(&self) -> DateTime<Utc> {
self.last_modified
}
pub fn version_tag(&self) -> &VersionTag {
&self.version_tag
}
}