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 ef3e9e87f5
commit 012c3e986c
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
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 {