Made stuff serializable
This commit is contained in:
parent
03884c6ff9
commit
1451f41ae3
3 changed files with 9 additions and 3 deletions
|
@ -1,7 +1,9 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
pub type TaskId = String; // This is an HTML "etag"
|
||||
|
||||
/// A to-do task
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct Task {
|
||||
id: TaskId,
|
||||
name: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue