pub struct Stats {
pub total_files: usize,
pub files_per_layer: BTreeMap<Layer, usize>,
pub total_size_bytes: u64,
pub type_distribution: BTreeMap<String, usize>,
pub orphan_count: usize,
pub broken_link_count: usize,
pub top_types: Vec<(String, usize)>,
pub recognized_types_present: Vec<String>,
pub custom_types_present: Vec<String>,
}Expand description
A point-in-time overview of a store. Pure data; the CLI formats it to text or JSON.
Fields§
§total_files: usizeTotal content-file count across all layers.
files_per_layer: BTreeMap<Layer, usize>File count per layer.
total_size_bytes: u64Total size on disk, in bytes.
type_distribution: BTreeMap<String, usize>Count per type: value (the type distribution).
orphan_count: usizeNumber of orphan files (no incoming and no outgoing wiki-links).
broken_link_count: usizeNumber of broken wiki-links (target file doesn’t exist).
top_types: Vec<(String, usize)>Top types by count, descending (ties broken by type name ascending).
recognized_types_present: Vec<String>Recognized canonical types that appear in the store.
custom_types_present: Vec<String>Custom (non-canonical) types that appear in the store.
Trait Implementations§
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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