#[non_exhaustive]pub struct IndexStats {
pub vectors_count: i64,
pub sparse_vectors_count: i64,
pub shards_count: i32,
/* private fields */
}Available on crate feature
index-service only.Expand description
Stats of the Index.
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.vectors_count: i64Output only. The number of dense vectors in the Index.
sparse_vectors_count: i64Output only. The number of sparse vectors in the Index.
shards_count: i32Output only. The number of shards in the Index.
Implementations§
Source§impl IndexStats
impl IndexStats
pub fn new() -> Self
Sourcepub fn set_vectors_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_vectors_count<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_sparse_vectors_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_sparse_vectors_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of sparse_vectors_count.
§Example
ⓘ
let x = IndexStats::new().set_sparse_vectors_count(42);Sourcepub fn set_shards_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_shards_count<T: Into<i32>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for IndexStats
impl Clone for IndexStats
Source§fn clone(&self) -> IndexStats
fn clone(&self) -> IndexStats
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 IndexStats
impl Debug for IndexStats
Source§impl Default for IndexStats
impl Default for IndexStats
Source§fn default() -> IndexStats
fn default() -> IndexStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for IndexStats
impl PartialEq for IndexStats
impl StructuralPartialEq for IndexStats
Auto Trait Implementations§
impl Freeze for IndexStats
impl RefUnwindSafe for IndexStats
impl Send for IndexStats
impl Sync for IndexStats
impl Unpin for IndexStats
impl UnwindSafe for IndexStats
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