pub struct IndexConfig { /* private fields */ }Expand description
Per-collection mapping of field IDs to their configured index types.
Implementations§
Source§impl IndexConfig
impl IndexConfig
Sourcepub fn add(
&mut self,
field_id: FieldId,
index_type: IndexType,
) -> Result<(), IndexError>
pub fn add( &mut self, field_id: FieldId, index_type: IndexType, ) -> Result<(), IndexError>
Register an index for a field. Returns an error if one already exists.
Sourcepub fn remove(&mut self, field_id: FieldId) -> Result<IndexType, IndexError>
pub fn remove(&mut self, field_id: FieldId) -> Result<IndexType, IndexError>
Remove an index configuration for a field. Returns an error if not found.
Trait Implementations§
Source§impl Debug for IndexConfig
impl Debug for IndexConfig
Source§impl Default for IndexConfig
impl Default for IndexConfig
Source§fn default() -> IndexConfig
fn default() -> IndexConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IndexConfig
impl RefUnwindSafe for IndexConfig
impl Send for IndexConfig
impl Sync for IndexConfig
impl Unpin for IndexConfig
impl UnsafeUnpin for IndexConfig
impl UnwindSafe for IndexConfig
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