Skip to content

Commit dfdb95e

Browse files
bors[bot]bidoubiwa
andauthored
Merge #271
271: Add missing IndexUpdate task type r=bidoubiwa a=bidoubiwa As per the [specifications](https://github.com/meilisearch/specifications/blob/aa2a262ce4116666b65bfa2479b76a05268fc635/text/0060-tasks-api.md#3-type-field-enum) `IndexUpdate` is a possible task type that was missing. Co-authored-by: Charlotte Vermandel <charlottevermandel@gmail.com>
2 parents 9b10232 + 2d75b25 commit dfdb95e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tasks.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub enum TaskType {
1515
DocumentPartial { details: Option<DocumentAddition> },
1616
DocumentDeletion { details: Option<DocumentDeletion> },
1717
IndexCreation { details: Option<IndexCreation> },
18+
IndexUpdate { details: Option<IndexUpdate> },
1819
IndexDeletion { details: Option<IndexDeletion> },
1920
SettingsUpdate { details: Option<Settings> },
2021
}
@@ -38,6 +39,12 @@ pub struct IndexCreation {
3839
pub primary_key: Option<String>,
3940
}
4041

42+
#[derive(Debug, Clone, Deserialize)]
43+
#[serde(rename_all = "camelCase")]
44+
pub struct IndexUpdate {
45+
pub primary_key: Option<String>,
46+
}
47+
4148
#[derive(Debug, Clone, Deserialize)]
4249
#[serde(rename_all = "camelCase")]
4350
pub struct IndexDeletion {

0 commit comments

Comments
 (0)