Skip to content

Commit 925d66f

Browse files
committed
Merge
2 parents 288499b + 4178388 commit 925d66f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/errors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ pub enum ErrorCode {
139139
MissingAuthorizationHeader,
140140
TaskNotFound,
141141
DumpNotFound,
142+
MssingMasterKey,
142143
NoSpaceLeftOnDevice,
143144
PayloadTooLarge,
144145
UnretrievableDocument,

src/tasks.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ pub enum TaskType {
3535
TaskCancelation {
3636
details: Option<TaskCancelation>,
3737
},
38+
SnapshotCreation {
39+
details: Option<SnapshotCreation>,
40+
},
3841
}
3942

4043
#[derive(Debug, Clone, Deserialize)]
@@ -76,6 +79,10 @@ pub struct IndexDeletion {
7679
pub deleted_documents: Option<usize>,
7780
}
7881

82+
#[derive(Debug, Clone, Deserialize)]
83+
#[serde(rename_all = "camelCase")]
84+
pub struct SnapshotCreation {}
85+
7986
#[derive(Debug, Clone, Deserialize)]
8087
#[serde(rename_all = "camelCase")]
8188
pub struct DumpCreation {
@@ -261,6 +268,7 @@ impl Task {
261268
/// # index.delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap();
262269
/// # });
263270
/// ```
271+
#[allow(clippy::result_large_err)] // Since `self` has been consumed, this is not an issue
264272
pub fn try_make_index(self, client: &Client) -> Result<Index, Self> {
265273
match self {
266274
Self::Succeeded {

0 commit comments

Comments
 (0)