pub struct CollectionStats {
pub vectors_count: usize,
pub segments_count: usize,
pub disk_size_bytes: u64,
pub ram_size_bytes: u64,
}Expand description
Statistics about a collection
Fields§
§vectors_count: usizeNumber of vectors in the collection
segments_count: usizeNumber of segments (partitions) in the collection
disk_size_bytes: u64Total disk space used (bytes)
ram_size_bytes: u64Total RAM used (bytes)
Implementations§
Source§impl CollectionStats
impl CollectionStats
Sourcepub fn disk_size_human(&self) -> String
pub fn disk_size_human(&self) -> String
Get human-readable disk size
Sourcepub fn ram_size_human(&self) -> String
pub fn ram_size_human(&self) -> String
Get human-readable RAM size
Trait Implementations§
Source§impl Clone for CollectionStats
impl Clone for CollectionStats
Source§fn clone(&self) -> CollectionStats
fn clone(&self) -> CollectionStats
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 CollectionStats
impl Debug for CollectionStats
Source§impl<'de> Deserialize<'de> for CollectionStats
impl<'de> Deserialize<'de> for CollectionStats
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 CollectionStats
impl RefUnwindSafe for CollectionStats
impl Send for CollectionStats
impl Sync for CollectionStats
impl Unpin for CollectionStats
impl UnwindSafe for CollectionStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more