pub struct EntitySnapshot {
pub store: String,
pub path: String,
pub entries: u64,
pub memory_bytes: u64,
pub min_key: Option<Key>,
pub max_key: Option<Key>,
}Expand description
EntitySnapshot Per-entity storage breakdown across stores
Fields§
§store: StringStore path (e.g., test_design::schema::TestDataStore)
path: StringEntity path (e.g., test_design::canister::db::Index)
entries: u64Number of rows for this entity in the store
memory_bytes: u64Approximate bytes used (key + value)
min_key: Option<Key>Minimum primary key for this entity (entity-local ordering)
max_key: Option<Key>Maximum primary key for this entity (entity-local ordering)
Trait Implementations§
Source§impl CandidType for EntitySnapshot
impl CandidType for EntitySnapshot
Source§impl Clone for EntitySnapshot
impl Clone for EntitySnapshot
Source§fn clone(&self) -> EntitySnapshot
fn clone(&self) -> EntitySnapshot
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 EntitySnapshot
impl Debug for EntitySnapshot
Source§impl Default for EntitySnapshot
impl Default for EntitySnapshot
Source§fn default() -> EntitySnapshot
fn default() -> EntitySnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntitySnapshot
impl<'de> Deserialize<'de> for EntitySnapshot
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 EntitySnapshot
impl RefUnwindSafe for EntitySnapshot
impl Send for EntitySnapshot
impl Sync for EntitySnapshot
impl Unpin for EntitySnapshot
impl UnsafeUnpin for EntitySnapshot
impl UnwindSafe for EntitySnapshot
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