#[non_exhaustive]pub struct GraphSnapshot {
pub entity_count: usize,
pub edge_count: usize,
}Expand description
Opaque snapshot of the KG corpus passed to CorpusCheck::check.
v1 exposes the bare field set needed for the built-in rules. Pack authors that need richer access should open an ADR to extend this surface — do NOT reach through this struct to the storage layer.
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.entity_count: usizeTotal entity count in the snapshot.
edge_count: usizeTotal edge count in the snapshot.
Auto Trait Implementations§
impl Freeze for GraphSnapshot
impl RefUnwindSafe for GraphSnapshot
impl Send for GraphSnapshot
impl Sync for GraphSnapshot
impl Unpin for GraphSnapshot
impl UnsafeUnpin for GraphSnapshot
impl UnwindSafe for GraphSnapshot
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