pub struct DataQuality {
pub state: String,
pub reason: String,
pub expected_after_reset: bool,
}Expand description
Distinguishes intentional clean-room state from unexpected data loss.
state | density | prior activity? | meaning |
|---|---|---|---|
clean_room | 0.0 | no | fresh init/clone — expected |
unannotated | 0.0 | yes | indexed but no annotations yet |
degraded | >0 <5% | yes | regression — possible state loss |
sparse_but_active | 5–50% | yes | annotation in progress |
populated | ≥50% | — | healthy, well-annotated |
empty | — | — | no symbols — run asd index |
Fields§
§state: StringOne of: “clean_room” | “sparse_but_active” | “populated” | “degraded” | “empty”.
reason: StringHuman-readable explanation of why this state was inferred.
expected_after_reset: boolTrue when sparse/low state is expected (e.g. after asd init or git clone).
False when sparse state is anomalous given prior activity.
Trait Implementations§
Source§impl Clone for DataQuality
impl Clone for DataQuality
Source§impl Debug for DataQuality
impl Debug for DataQuality
Source§impl<'de> Deserialize<'de> for DataQuality
impl<'de> Deserialize<'de> for DataQuality
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DataQuality
impl RefUnwindSafe for DataQuality
impl Send for DataQuality
impl Sync for DataQuality
impl Unpin for DataQuality
impl UnsafeUnpin for DataQuality
impl UnwindSafe for DataQuality
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more