summaryrefslogtreecommitdiff
path: root/src/model/task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/task.rs')
-rw-r--r--src/model/task.rs15
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)
+ }
+}