pub struct VectorIndex {
pub base: IndexField,
pub dimension: Option<u32>,
pub metric_type: Option<MetricType>,
pub params: Option<IndexParams>,
pub indexed_count: Option<u64>,
}
Fields§
§base: IndexField
§dimension: Option<u32>
§metric_type: Option<MetricType>
§params: Option<IndexParams>
§indexed_count: Option<u64>
Implementations§
Source§impl VectorIndex
impl VectorIndex
pub fn new( name: impl Into<String>, dimension: u32, index_type: IndexType, metric_type: MetricType, params: Option<IndexParams>, ) -> Self
pub fn with_field_type( name: impl Into<String>, dimension: u32, index_type: IndexType, metric_type: MetricType, field_type: FieldType, params: Option<IndexParams>, ) -> Self
Trait Implementations§
Source§impl Clone for VectorIndex
impl Clone for VectorIndex
Source§fn clone(&self) -> VectorIndex
fn clone(&self) -> VectorIndex
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 VectorIndex
impl Debug for VectorIndex
Source§impl<'de> Deserialize<'de> for VectorIndex
impl<'de> Deserialize<'de> for VectorIndex
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 VectorIndex
impl RefUnwindSafe for VectorIndex
impl Send for VectorIndex
impl Sync for VectorIndex
impl Unpin for VectorIndex
impl UnwindSafe for VectorIndex
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