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