mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Finish first draft of the DELETE /tasks route
This commit is contained in:
parent
9522b75454
commit
8bb0fcd144
5 changed files with 81 additions and 53 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue