Finish first draft of the DELETE /tasks route

This commit is contained in:
Loïc Lecrenier
2022-10-13 12:48:23 +02:00
committed by Clément Renault
parent 9522b75454
commit 8bb0fcd144
5 changed files with 81 additions and 53 deletions

View File

@ -16,7 +16,7 @@ use crate::{
pub type TaskId = u32;
#[derive(Debug, PartialEq, Serialize, Deserialize)]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Task {
pub uid: TaskId,
@ -73,7 +73,7 @@ impl Task {
}
}
#[derive(Debug, PartialEq, Serialize, Deserialize)]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum KindWithContent {
DocumentImport {