pub struct CollectionConfig {
pub vectors: Option<Box<VectorsConfig>>,
pub hnsw: Option<Box<HnswRuntimeConfig>>,
pub optimizers: Option<Box<OptimizersRuntimeConfig>>,
pub params: Option<Box<CollectionParamsConfig>>,
pub quantization: Option<Box<QuantizationConfig>>,
pub quantization_update: Option<Box<QuantizationUpdate>>,
pub wal: Option<Vec<(String, Value)>>,
pub strict_mode: Option<Vec<(String, Value)>>,
pub metadata: Option<Vec<(String, Value)>>,
pub vector_diffs: Vec<VectorDiff>,
pub sparse_vector_diffs: Vec<SparseVectorDiff>,
}Expand description
Full WITH-clause configuration of a collection.
Fields§
§vectors: Option<Box<VectorsConfig>>Default dense vector storage settings.
hnsw: Option<Box<HnswRuntimeConfig>>Collection-wide HNSW settings.
optimizers: Option<Box<OptimizersRuntimeConfig>>Collection-wide optimizer settings.
params: Option<Box<CollectionParamsConfig>>Cluster and storage parameters.
quantization: Option<Box<QuantizationConfig>>Collection-wide quantization settings.
quantization_update: Option<Box<QuantizationUpdate>>Quantization replacement emitted by ALTER COLLECTION.
wal: Option<Vec<(String, Value)>>Write-ahead log settings (WITH WAL (…)); raw pairs, validated by plan.
strict_mode: Option<Vec<(String, Value)>>Strict-mode settings (WITH STRICT_MODE (…)); raw pairs, validated by plan.
metadata: Option<Vec<(String, Value)>>Collection metadata (WITH METADATA (…)); raw pairs, serialized as a map.
vector_diffs: Vec<VectorDiff>Per-vector dense diffs emitted by ALTER COLLECTION … WITH VECTOR <name>.
sparse_vector_diffs: Vec<SparseVectorDiff>Per-sparse-vector diffs emitted by ALTER COLLECTION … WITH SPARSE <name>.
Trait Implementations§
Source§impl Clone for CollectionConfig
impl Clone for CollectionConfig
Source§fn clone(&self) -> CollectionConfig
fn clone(&self) -> CollectionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CollectionConfig
impl Debug for CollectionConfig
Source§impl PartialEq for CollectionConfig
impl PartialEq for CollectionConfig
impl StructuralPartialEq for CollectionConfig
Auto Trait Implementations§
impl Freeze for CollectionConfig
impl RefUnwindSafe for CollectionConfig
impl Send for CollectionConfig
impl Sync for CollectionConfig
impl Unpin for CollectionConfig
impl UnsafeUnpin for CollectionConfig
impl UnwindSafe for CollectionConfig
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