From 47fe90ee23d8ab04645ef3c7a17459ed40c5b765 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 24 Apr 2022 16:31:49 +0200 Subject: Allow to attach categories to events --- src/model/category.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/model/category.rs (limited to 'src/model/category.rs') diff --git a/src/model/category.rs b/src/model/category.rs new file mode 100644 index 0000000..2f65671 --- /dev/null +++ b/src/model/category.rs @@ -0,0 +1,8 @@ +use uuid::Uuid; + +#[derive(Debug, Clone)] +pub struct Category { + pub id: Uuid, + pub name: String, + pub color: String, +} -- cgit v1.2.3