From 22c8553af68c6f5b2c62ba790e06b249ac82ed2a Mon Sep 17 00:00:00 2001 From: "Julian T." Date: Mon, 29 Apr 2024 22:25:47 +0200 Subject: Add beginnning ui and database --- src/model/task.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/model/task.rs (limited to 'src/model/task.rs') diff --git a/src/model/task.rs b/src/model/task.rs new file mode 100644 index 0000000..4fdfd88 --- /dev/null +++ b/src/model/task.rs @@ -0,0 +1,15 @@ + +use std::fmt::{self, Display}; + +use sqlx::FromRow; + +#[derive(Debug, FromRow)] +pub struct Task { + pub test: String, +} + +impl Display for Task { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "test: {}", self.test) + } +} -- cgit v1.2.3