pub struct StrictModeConfig {
pub enabled: Option<bool>,
pub max_query_limit: Option<u32>,
pub max_timeout: Option<u32>,
pub unindexed_filtering_retrieve: Option<bool>,
pub unindexed_filtering_update: Option<bool>,
pub search_max_hnsw_ef: Option<u32>,
pub search_allow_exact: Option<bool>,
pub search_max_oversampling: Option<f32>,
}
Fields§
§enabled: Option<bool>
§max_query_limit: Option<u32>
§max_timeout: Option<u32>
§unindexed_filtering_retrieve: Option<bool>
§unindexed_filtering_update: Option<bool>
§search_max_hnsw_ef: Option<u32>
§search_allow_exact: Option<bool>
§search_max_oversampling: Option<f32>
Implementations§
source§impl StrictModeConfig
impl StrictModeConfig
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Returns the value of enabled
, or the default value if enabled
is unset.
sourcepub fn max_query_limit(&self) -> u32
pub fn max_query_limit(&self) -> u32
Returns the value of max_query_limit
, or the default value if max_query_limit
is unset.
sourcepub fn max_timeout(&self) -> u32
pub fn max_timeout(&self) -> u32
Returns the value of max_timeout
, or the default value if max_timeout
is unset.
sourcepub fn unindexed_filtering_retrieve(&self) -> bool
pub fn unindexed_filtering_retrieve(&self) -> bool
Returns the value of unindexed_filtering_retrieve
, or the default value if unindexed_filtering_retrieve
is unset.
sourcepub fn unindexed_filtering_update(&self) -> bool
pub fn unindexed_filtering_update(&self) -> bool
Returns the value of unindexed_filtering_update
, or the default value if unindexed_filtering_update
is unset.
sourcepub fn search_max_hnsw_ef(&self) -> u32
pub fn search_max_hnsw_ef(&self) -> u32
Returns the value of search_max_hnsw_ef
, or the default value if search_max_hnsw_ef
is unset.
sourcepub fn search_allow_exact(&self) -> bool
pub fn search_allow_exact(&self) -> bool
Returns the value of search_allow_exact
, or the default value if search_allow_exact
is unset.
sourcepub fn search_max_oversampling(&self) -> f32
pub fn search_max_oversampling(&self) -> f32
Returns the value of search_max_oversampling
, or the default value if search_max_oversampling
is unset.
Trait Implementations§
source§impl Clone for StrictModeConfig
impl Clone for StrictModeConfig
source§fn clone(&self) -> StrictModeConfig
fn clone(&self) -> StrictModeConfig
Returns a copy 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 Debug for StrictModeConfig
impl Debug for StrictModeConfig
source§impl Default for StrictModeConfig
impl Default for StrictModeConfig
source§impl From<StrictModeConfigBuilder> for StrictModeConfig
impl From<StrictModeConfigBuilder> for StrictModeConfig
source§fn from(value: StrictModeConfigBuilder) -> Self
fn from(value: StrictModeConfigBuilder) -> Self
Converts to this type from the input type.
source§impl Message for StrictModeConfig
impl Message for StrictModeConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for StrictModeConfig
impl PartialEq for StrictModeConfig
impl Copy for StrictModeConfig
impl StructuralPartialEq for StrictModeConfig
Auto Trait Implementations§
impl Freeze for StrictModeConfig
impl RefUnwindSafe for StrictModeConfig
impl Send for StrictModeConfig
impl Sync for StrictModeConfig
impl Unpin for StrictModeConfig
impl UnwindSafe for StrictModeConfig
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