From dd11cf4ab199e5d53d03dc95b24007a12727ad70 Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 22 May 2024 22:54:50 +0200 Subject: Start goprojekt istedet --- src/model/task.rs | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/model/task.rs (limited to 'src/model/task.rs') diff --git a/src/model/task.rs b/src/model/task.rs deleted file mode 100644 index e90dd8e..0000000 --- a/src/model/task.rs +++ /dev/null @@ -1,20 +0,0 @@ - -use sqlx::FromRow; - -#[derive(Debug, FromRow)] -pub struct Task { - pub id: i64, - pub group_id: i64, - pub name: String, - pub description: String, -} - -impl Task { - pub fn new(id: i64, group_id: i64, name: &str, description: &str) -> Task { - Task { - id, group_id, - name: String::from(name), - description: String::from(description), - } - } -} -- cgit v1.2.3