pub struct Index { /* private fields */ }
Implementations§
Source§impl Index
impl Index
pub fn new() -> Self
pub fn add_vector_index(&mut self, index: VectorIndex) -> Result<&mut Self>
pub fn add_filter_index(&mut self, index: FilterIndex) -> Result<&mut Self>
pub fn add_sparse_index(&mut self, index: SparseIndex) -> Result<&mut Self>
pub fn remove(&mut self, index_name: &str) -> &mut Self
pub fn get(&self, name: &str) -> Option<&IndexDefinition>
pub fn list(&self) -> Vec<&IndexDefinition>
pub fn primary_field(&self) -> Option<&str>
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Index
impl<'de> Deserialize<'de> for Index
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 Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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