pub struct CreateCollectionStmt {
pub collection: String,
pub mode: CollectionMode,
pub vectors: Vec<VectorDef>,
pub sparse_vectors: Vec<SparseVectorDef>,
pub config: Option<Box<CollectionConfig>>,
}Expand description
CREATE COLLECTION <name> statement.
Fields§
§collection: StringName of the collection to create.
mode: CollectionModeTopology mode (model, hybrid, or rerank).
vectors: Vec<VectorDef>Named dense vector definitions.
sparse_vectors: Vec<SparseVectorDef>Named sparse vector definitions.
config: Option<Box<CollectionConfig>>WITH config blocks (HNSW, PARAMS, OPTIMIZERS, QUANTIZATION, VECTOR).
Trait Implementations§
Source§impl Clone for CreateCollectionStmt
impl Clone for CreateCollectionStmt
Source§fn clone(&self) -> CreateCollectionStmt
fn clone(&self) -> CreateCollectionStmt
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 CreateCollectionStmt
impl Debug for CreateCollectionStmt
Source§impl PartialEq for CreateCollectionStmt
impl PartialEq for CreateCollectionStmt
impl StructuralPartialEq for CreateCollectionStmt
Auto Trait Implementations§
impl Freeze for CreateCollectionStmt
impl RefUnwindSafe for CreateCollectionStmt
impl Send for CreateCollectionStmt
impl Sync for CreateCollectionStmt
impl Unpin for CreateCollectionStmt
impl UnsafeUnpin for CreateCollectionStmt
impl UnwindSafe for CreateCollectionStmt
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