We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 523728c commit dedcaa7Copy full SHA for dedcaa7
src/dumps.rs
@@ -59,6 +59,9 @@ pub struct DumpInfo {
59
pub uid: String,
60
pub status: DumpStatus,
61
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>
65
}
66
67
/// Dump related methods.\
@@ -154,5 +157,7 @@ mod tests {
154
157
// Assert that the dump was successful
155
158
let new_dump_info = client.get_dump_status(&dump_info.uid).await.unwrap();
156
159
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());
162
163
0 commit comments