pub struct SparseVectorCreationConfig {
pub modifier: Option<i32>,
pub datatype: Option<i32>,
}Expand description
Sparse vector creation parameters. Only includes immutable properties that define the vector space.
Fields§
§modifier: Option<i32>If set - apply modifier to the vector values (e.g., IDF)
datatype: Option<i32>Data type used to store weights in the index
Implementations§
Source§impl SparseVectorCreationConfig
impl SparseVectorCreationConfig
Sourcepub fn modifier(&self) -> Modifier
pub fn modifier(&self) -> Modifier
Returns the enum value of modifier, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_modifier(&mut self, value: Modifier)
pub fn set_modifier(&mut self, value: Modifier)
Sets modifier to the provided enum value.
Sourcepub fn datatype(&self) -> Datatype
pub fn datatype(&self) -> Datatype
Returns the enum value of datatype, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_datatype(&mut self, value: Datatype)
pub fn set_datatype(&mut self, value: Datatype)
Sets datatype to the provided enum value.
Trait Implementations§
Source§impl Clone for SparseVectorCreationConfig
impl Clone for SparseVectorCreationConfig
Source§fn clone(&self) -> SparseVectorCreationConfig
fn clone(&self) -> SparseVectorCreationConfig
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 Debug for SparseVectorCreationConfig
impl Debug for SparseVectorCreationConfig
Source§impl Default for SparseVectorCreationConfig
impl Default for SparseVectorCreationConfig
Source§impl From<SparseVectorCreationConfig> for VectorConfig
impl From<SparseVectorCreationConfig> for VectorConfig
Source§fn from(value: SparseVectorCreationConfig) -> Self
fn from(value: SparseVectorCreationConfig) -> Self
Converts to this type from the input type.
Source§impl From<SparseVectorCreationConfigBuilder> for SparseVectorCreationConfig
impl From<SparseVectorCreationConfigBuilder> for SparseVectorCreationConfig
Source§fn from(value: SparseVectorCreationConfigBuilder) -> Self
fn from(value: SparseVectorCreationConfigBuilder) -> Self
Converts to this type from the input type.
Source§impl Message for SparseVectorCreationConfig
impl Message for SparseVectorCreationConfig
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 SparseVectorCreationConfig
impl PartialEq for SparseVectorCreationConfig
Source§fn eq(&self, other: &SparseVectorCreationConfig) -> bool
fn eq(&self, other: &SparseVectorCreationConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SparseVectorCreationConfig
impl StructuralPartialEq for SparseVectorCreationConfig
Auto Trait Implementations§
impl Freeze for SparseVectorCreationConfig
impl RefUnwindSafe for SparseVectorCreationConfig
impl Send for SparseVectorCreationConfig
impl Sync for SparseVectorCreationConfig
impl Unpin for SparseVectorCreationConfig
impl UnsafeUnpin for SparseVectorCreationConfig
impl UnwindSafe for SparseVectorCreationConfig
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