Traits
This commit is contained in:
parent
958cf8829a
commit
b6dba5fc88
4 changed files with 15 additions and 12 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use chrono::{DateTime, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::enums::ToDoStatus;
|
||||
|
|
@ -11,7 +12,7 @@ const MIN_PRIORITY: u32 = 1;
|
|||
const MAX_PRIORITY: u32 = 1000;
|
||||
const DEFAULT_PRIORITY: u32 = 100;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
pub struct ToDo {
|
||||
pub id: Uuid,
|
||||
pub title: String,
|
||||
|
|
|
|||
Loading…
Reference in a new issue