#[non_exhaustive]pub struct ReconcileReport {
pub rows: u64,
pub expected: u64,
pub missing_count: u64,
pub missing: Vec<Vec<u8>>,
pub orphaned_count: u64,
pub orphaned: Vec<Vec<u8>>,
}Expand description
The result of Snapshot::reconcile.
assert!(kevy_embedded::ReconcileReport::default().is_clean());Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rows: u64Rows visited under the row prefix.
// three rows, each implying `idx:<key>`; idx:user:1 exists, idx:user:9 has no row
assert_eq!(report.rows, 3);expected: u64Distinct derived keys the rows imply.
// three rows, each implying `idx:<key>`; idx:user:1 exists, idx:user:9 has no row
assert_eq!(report.expected, 3);missing_count: u64Implied by a row, absent from the store — lost derived state.
Exact count; missing holds up to 1000 examples.
// three rows, each implying `idx:<key>`; idx:user:1 exists, idx:user:9 has no row
assert_eq!(report.missing_count, 2);missing: Vec<Vec<u8>>Example missing keys.
// three rows, each implying `idx:<key>`; idx:user:1 exists, idx:user:9 has no row
let mut missing = report.missing.clone();
missing.sort();
assert_eq!(missing, [b"idx:user:2".to_vec(), b"idx:user:3".to_vec()]);orphaned_count: u64Present under a derived prefix but implied by no row — a claim
or link left behind. Exact count; orphaned holds examples.
// three rows, each implying `idx:<key>`; idx:user:1 exists, idx:user:9 has no row
assert_eq!(report.orphaned_count, 1);orphaned: Vec<Vec<u8>>Example orphaned keys.
// three rows, each implying `idx:<key>`; idx:user:1 exists, idx:user:9 has no row
assert_eq!(report.orphaned, [b"idx:user:9".to_vec()]);Implementations§
Trait Implementations§
Source§impl Clone for ReconcileReport
impl Clone for ReconcileReport
Source§impl Debug for ReconcileReport
impl Debug for ReconcileReport
Source§impl Default for ReconcileReport
impl Default for ReconcileReport
impl Eq for ReconcileReport
Source§impl Hash for ReconcileReport
impl Hash for ReconcileReport
Source§impl PartialEq for ReconcileReport
impl PartialEq for ReconcileReport
impl StructuralPartialEq for ReconcileReport
Auto Trait Implementations§
impl Freeze for ReconcileReport
impl RefUnwindSafe for ReconcileReport
impl Send for ReconcileReport
impl Sync for ReconcileReport
impl Unpin for ReconcileReport
impl UnsafeUnpin for ReconcileReport
impl UnwindSafe for ReconcileReport
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