feat: implement From<Task>
for NewTask
This commit is contained in:
parent
9986e5eda4
commit
3da2698af2
@ -69,3 +69,9 @@ impl NewTask {
|
||||
Self { title, deadline, category, project_id }
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Task> for NewTask {
|
||||
fn from(task: Task) -> Self {
|
||||
Self::new(task.title, task.deadline, task.category, task.project_id)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user