pub struct VectorParamsDiffBuilder { /* private fields */ }Implementations§
Source§impl VectorParamsDiffBuilder
impl VectorParamsDiffBuilder
Sourcepub fn hnsw_config<VALUE: Into<HnswConfigDiff>>(self, value: VALUE) -> Self
pub fn hnsw_config<VALUE: Into<HnswConfigDiff>>(self, value: VALUE) -> Self
Update params for HNSW index. If empty object - it will be unset
Sourcepub fn quantization_config<VALUE: Into<Quantization>>(
self,
value: VALUE,
) -> Self
pub fn quantization_config<VALUE: Into<Quantization>>( self, value: VALUE, ) -> Self
Update quantization params. If none - it is left unchanged.
Sourcepub fn on_disk(self, value: bool) -> Self
pub fn on_disk(self, value: bool) -> Self
If true - serve vectors from disk. If set to false, the vectors will be loaded in RAM.
Deprecated since 1.19.0, use memory instead.
Sourcepub fn memory<VALUE: Into<i32>>(self, value: VALUE) -> Self
pub fn memory<VALUE: Into<i32>>(self, value: VALUE) -> Self
Memory placement of the original vector storage.
Overrides the deprecated on_disk flag if both are set.
Memory::Pinned is not supported for dense vector storage.
Source§impl VectorParamsDiffBuilder
impl VectorParamsDiffBuilder
Sourcepub fn build(self) -> VectorParamsDiff
pub fn build(self) -> VectorParamsDiff
Builds the desired type. Can often be omitted.
Trait Implementations§
Source§impl Clone for VectorParamsDiffBuilder
impl Clone for VectorParamsDiffBuilder
Source§fn clone(&self) -> VectorParamsDiffBuilder
fn clone(&self) -> VectorParamsDiffBuilder
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 Default for VectorParamsDiffBuilder
impl Default for VectorParamsDiffBuilder
Source§impl From<VectorParamsDiffBuilder> for VectorParamsDiff
impl From<VectorParamsDiffBuilder> for VectorParamsDiff
Source§fn from(value: VectorParamsDiffBuilder) -> Self
fn from(value: VectorParamsDiffBuilder) -> Self
Converts to this type from the input type.
Source§impl From<VectorParamsDiffBuilder> for Config
impl From<VectorParamsDiffBuilder> for Config
Source§fn from(value: VectorParamsDiffBuilder) -> Self
fn from(value: VectorParamsDiffBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VectorParamsDiffBuilder
impl RefUnwindSafe for VectorParamsDiffBuilder
impl Send for VectorParamsDiffBuilder
impl Sync for VectorParamsDiffBuilder
impl Unpin for VectorParamsDiffBuilder
impl UnsafeUnpin for VectorParamsDiffBuilder
impl UnwindSafe for VectorParamsDiffBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request