pub struct StorageStats {
pub graph_count: usize,
pub total_nodes: usize,
pub total_edges: usize,
pub storage_size_bytes: usize,
pub index_size_bytes: usize,
pub node_type_distribution: HashMap<String, usize>,
pub edge_type_distribution: HashMap<String, usize>,
pub last_updated: DateTime<Utc>,
}Expand description
Storage statistics
Fields§
§graph_count: usizeNumber of stored graphs
total_nodes: usizeTotal number of nodes
total_edges: usizeTotal number of edges
storage_size_bytes: usizeStorage size in bytes (estimate)
index_size_bytes: usizeIndex size in bytes (estimate)
node_type_distribution: HashMap<String, usize>Node type distribution
edge_type_distribution: HashMap<String, usize>Edge type distribution
last_updated: DateTime<Utc>Last update timestamp
Trait Implementations§
Source§impl Clone for StorageStats
impl Clone for StorageStats
Source§fn clone(&self) -> StorageStats
fn clone(&self) -> StorageStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageStats
impl Debug for StorageStats
Source§impl<'de> Deserialize<'de> for StorageStats
impl<'de> Deserialize<'de> for StorageStats
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 StorageStats
impl RefUnwindSafe for StorageStats
impl Send for StorageStats
impl Sync for StorageStats
impl Unpin for StorageStats
impl UnwindSafe for StorageStats
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