pub struct VectorTableConfig {
pub db_name: String,
pub table_name: String,
pub dim: usize,
pub vtype: VectorType,
pub metric: DistanceMetric,
pub hnsw_params: HnswParams,
pub metadata_columns: Vec<(String, String)>,
}Expand description
Parsed configuration from CREATE VIRTUAL TABLE arguments.
Fields§
§db_name: String§table_name: String§dim: usize§vtype: VectorType§metric: DistanceMetric§hnsw_params: HnswParams§metadata_columns: Vec<(String, String)>Implementations§
Source§impl VectorTableConfig
impl VectorTableConfig
pub fn parse(args: &[&str]) -> Result<Self, ConfigError>
pub fn vtab_schema(&self) -> String
Trait Implementations§
Source§impl Clone for VectorTableConfig
impl Clone for VectorTableConfig
Source§fn clone(&self) -> VectorTableConfig
fn clone(&self) -> VectorTableConfig
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 moreAuto Trait Implementations§
impl Freeze for VectorTableConfig
impl RefUnwindSafe for VectorTableConfig
impl Send for VectorTableConfig
impl Sync for VectorTableConfig
impl Unpin for VectorTableConfig
impl UnsafeUnpin for VectorTableConfig
impl UnwindSafe for VectorTableConfig
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