pub struct StrictModeSparseConfigBuilder { /* private fields */ }
Expand description
Builder for StrictModeSparseConfig, which defines sparse vector configuration for strict mode.
Implementations§
Source§impl StrictModeSparseConfigBuilder
impl StrictModeSparseConfigBuilder
Sourcepub fn add_vector_config<S: Into<String>>(
self,
name: S,
strict_mode_multivector: StrictModeSparse,
) -> Self
pub fn add_vector_config<S: Into<String>>( self, name: S, strict_mode_multivector: StrictModeSparse, ) -> Self
Add a configuration for a named vector, specifying its maximum number of vectors.
Sourcepub fn sparse_config<M: Into<HashMap<String, StrictModeSparse>>>(
self,
config: M,
) -> Self
pub fn sparse_config<M: Into<HashMap<String, StrictModeSparse>>>( self, config: M, ) -> Self
Set the entire sparse vectors configuration map at once.
Source§impl StrictModeSparseConfigBuilder
impl StrictModeSparseConfigBuilder
Sourcepub fn build(self) -> StrictModeSparseConfig
pub fn build(self) -> StrictModeSparseConfig
Builds the desired StrictModeSparseConfig type.
Trait Implementations§
Source§impl From<StrictModeSparseConfigBuilder> for StrictModeSparseConfig
impl From<StrictModeSparseConfigBuilder> for StrictModeSparseConfig
Source§fn from(value: StrictModeSparseConfigBuilder) -> Self
fn from(value: StrictModeSparseConfigBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StrictModeSparseConfigBuilder
impl RefUnwindSafe for StrictModeSparseConfigBuilder
impl Send for StrictModeSparseConfigBuilder
impl Sync for StrictModeSparseConfigBuilder
impl Unpin for StrictModeSparseConfigBuilder
impl UnwindSafe for StrictModeSparseConfigBuilder
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> 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