diff options
author | Julian T. <julian@jtle.dk> | 2024-04-29 22:25:47 +0200 |
---|---|---|
committer | Julian T. <julian@jtle.dk> | 2024-04-29 22:25:47 +0200 |
commit | 22c8553af68c6f5b2c62ba790e06b249ac82ed2a (patch) | |
tree | 27f954840087372f315311b4d202c2b20c3526b5 /src/model/task.rs | |
parent | 0b29e9b14607f3226c46f75a20f11abd49c8f4a6 (diff) |
Add beginnning ui and database
Diffstat (limited to 'src/model/task.rs')
-rw-r--r-- | src/model/task.rs | 15 |
1 files changed, 15 insertions, 0 deletions
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) + } +} |