pub struct VAddOptions {
pub reduce_dim: Option<u64>,
pub cas: bool,
pub m: Option<u64>,
pub ef: Option<u64>,
pub quant: Option<VQuantization>,
}Available on crate feature
vector only.Expand description
Options for adding a vector element with VectorSetClient::add_with_options.
Debug and Clone are implemented by hand because VQuantization (from
the command layer) does not derive them.
Fields§
§reduce_dim: Option<u64>Reduce the stored vector to this many dimensions (random projection).
cas: boolUse check-and-set semantics when inserting.
m: Option<u64>Maximum number of links per HNSW node.
ef: Option<u64>EF construction parameter for the HNSW graph.
quant: Option<VQuantization>Quantization type for the stored vector.
Trait Implementations§
Source§impl Clone for VAddOptions
impl Clone for VAddOptions
Source§impl Debug for VAddOptions
impl Debug for VAddOptions
Auto Trait Implementations§
impl Freeze for VAddOptions
impl RefUnwindSafe for VAddOptions
impl Send for VAddOptions
impl Sync for VAddOptions
impl Unpin for VAddOptions
impl UnsafeUnpin for VAddOptions
impl UnwindSafe for VAddOptions
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