Skip to content

Commit dedcaa7

Browse files
authored
Add new dump fields startedAt and finishedAt (#161)
1 parent 523728c commit dedcaa7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dumps.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ pub struct DumpInfo {
5959
pub uid: String,
6060
pub status: DumpStatus,
6161
pub error: Option<serde_json::Value>,
62+
pub started_at: Option<String>,
63+
#[serde(skip_serializing_if = "Option::is_none")]
64+
pub finished_at: Option<String>
6265
}
6366

6467
/// Dump related methods.\
@@ -154,5 +157,7 @@ mod tests {
154157
// Assert that the dump was successful
155158
let new_dump_info = client.get_dump_status(&dump_info.uid).await.unwrap();
156159
assert!(matches!(new_dump_info.status, DumpStatus::Done));
160+
assert!(new_dump_info.finished_at.is_some());
161+
assert!(new_dump_info.started_at.is_some());
157162
}
158163
}

0 commit comments

Comments
 (0)