File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ pub enum ErrorCode {
139
139
MissingAuthorizationHeader ,
140
140
TaskNotFound ,
141
141
DumpNotFound ,
142
+ MssingMasterKey ,
142
143
NoSpaceLeftOnDevice ,
143
144
PayloadTooLarge ,
144
145
UnretrievableDocument ,
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ pub enum TaskType {
35
35
TaskCancelation {
36
36
details : Option < TaskCancelation > ,
37
37
} ,
38
+ SnapshotCreation {
39
+ details : Option < SnapshotCreation > ,
40
+ } ,
38
41
}
39
42
40
43
#[ derive( Debug , Clone , Deserialize ) ]
@@ -76,6 +79,10 @@ pub struct IndexDeletion {
76
79
pub deleted_documents : Option < usize > ,
77
80
}
78
81
82
+ #[ derive( Debug , Clone , Deserialize ) ]
83
+ #[ serde( rename_all = "camelCase" ) ]
84
+ pub struct SnapshotCreation { }
85
+
79
86
#[ derive( Debug , Clone , Deserialize ) ]
80
87
#[ serde( rename_all = "camelCase" ) ]
81
88
pub struct DumpCreation {
@@ -261,6 +268,7 @@ impl Task {
261
268
/// # index.delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
262
269
/// # });
263
270
/// ```
271
+ #[ allow( clippy:: result_large_err) ] // Since `self` has been consumed, this is not an issue
264
272
pub fn try_make_index ( self , client : & Client ) -> Result < Index , Self > {
265
273
match self {
266
274
Self :: Succeeded {
You can’t perform that action at this time.
0 commit comments