feat(scanner): expose checkpoint and source work status (#3230)

* feat(scanner): expose checkpoint and source work status

* fix(scanner): count ignored checkpoints once per scan

---------

Co-authored-by: Henry Guo <marshawcoco@users.noreply.github.com>
This commit is contained in:
Henry Guo
2026-06-06 18:47:39 +08:00
committed by GitHub
parent 6db4c3538d
commit b36a730e48
3 changed files with 490 additions and 24 deletions
+11
View File
@@ -220,6 +220,17 @@ pub enum DataUsageScanCheckpointReason {
Unknown,
}
impl DataUsageScanCheckpointReason {
pub fn as_str(self) -> &'static str {
match self {
Self::Runtime => "runtime",
Self::Objects => "objects",
Self::Directories => "directories",
Self::Unknown => "unknown",
}
}
}
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
pub struct DataUsageScanCheckpoint {
pub version: u16,