diff options
Diffstat (limited to 'src/model/event.rs')
-rw-r--r-- | src/model/event.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/model/event.rs b/src/model/event.rs index e556f6e..6cc16a2 100644 --- a/src/model/event.rs +++ b/src/model/event.rs @@ -16,6 +16,7 @@ pub struct Event { pub end: Option<NaiveTime>, pub name: String, pub repetition: Option<Repetition>, + pub category: Option<Uuid>, } impl Event { @@ -62,6 +63,7 @@ pub fn validate( start: String, end: String, repetition: Option<Repetition>, + category: Option<Uuid>, ) -> Option<Event> { let start = validation::time(start)?; let end = validation::time(end)?; @@ -78,5 +80,6 @@ pub fn validate( start, end, repetition, + category, }) } |