pub struct IndexSchema {
pub index_name: String,
pub index_type: Option<IndexType>,
pub metric_type: Option<MetricType>,
pub params: Option<VectorIndexParams>,
pub field: String,
pub auto_build: bool,
pub state: Option<IndexState>,
pub auto_build_policy: Option<AutoBuildPolicy>,
pub index_major_version: Option<u64>,
}Expand description
index param
Fields§
§index_name: String§index_type: Option<IndexType>The currently supported types are as follows: scalar index: SECONDARY, vector index: HNSW, FLAT
metric_type: Option<MetricType>Distance measurement type of vector index, L2: Euclidean distance, IP: Inner product distance, COSINE: Cosine distance.
params: Option<VectorIndexParams>Parameter details of vector index
field: StringThe target field name that the index acts on
auto_build: boolis auto build index
state: Option<IndexState>index state, this is not param in create index api, but response from server
auto_build_policy: Option<AutoBuildPolicy>§index_major_version: Option<u64>index major version: only increase when manually rebuilding the index is completed, this is not param in create index api, but response from server
Trait Implementations§
Source§impl Clone for IndexSchema
impl Clone for IndexSchema
Source§fn clone(&self) -> IndexSchema
fn clone(&self) -> IndexSchema
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 IndexSchema
impl Debug for IndexSchema
Source§impl<'de> Deserialize<'de> for IndexSchema
impl<'de> Deserialize<'de> for IndexSchema
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 IndexSchema
impl RefUnwindSafe for IndexSchema
impl Send for IndexSchema
impl Sync for IndexSchema
impl Unpin for IndexSchema
impl UnwindSafe for IndexSchema
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