aboutsummaryrefslogtreecommitdiff
path: root/src/model/category.rs
diff options
context:
space:
mode:
authorJoris2022-04-24 16:31:49 +0200
committerJoris2022-04-24 16:31:49 +0200
commit47fe90ee23d8ab04645ef3c7a17459ed40c5b765 (patch)
treed1aa7d3840a3bd825dcae0a0398fec7ca310f45c /src/model/category.rs
parent6d271b09303d924381cc65e7c0b5eb56833780ed (diff)
downloadcalendar-47fe90ee23d8ab04645ef3c7a17459ed40c5b765.tar.gz
calendar-47fe90ee23d8ab04645ef3c7a17459ed40c5b765.tar.bz2
calendar-47fe90ee23d8ab04645ef3c7a17459ed40c5b765.zip
Allow to attach categories to events
Diffstat (limited to 'src/model/category.rs')
-rw-r--r--src/model/category.rs8
1 files changed, 8 insertions, 0 deletions
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,
+}