Traits
This commit is contained in:
parent
958cf8829a
commit
b6dba5fc88
4 changed files with 15 additions and 12 deletions
|
|
@ -1,10 +1,11 @@
|
|||
use chrono::{DateTime, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::enums::{TaskResultType, TaskStatus};
|
||||
use crate::todo::ToDo;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Task {
|
||||
pub id: Uuid,
|
||||
pub todo_id: Uuid,
|
||||
|
|
@ -115,7 +116,7 @@ impl Task {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
pub enum TaskResult {
|
||||
Success(String),
|
||||
Error(String),
|
||||
|
|
|
|||
Loading…
Reference in a new issue