pub struct FirestoreVectorIndexConfig {
pub dimension: u32,
}Expand description
A flat vector index’s configuration, for nearest-neighbor search.
Fields§
§dimension: u32The dimension every indexed vector in this field must have.
Implementations§
Source§impl FirestoreVectorIndexConfig
impl FirestoreVectorIndexConfig
Sourcepub fn new(dimension: u32) -> Self
pub fn new(dimension: u32) -> Self
Creates a new FirestoreVectorIndexConfig from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn dimension(&mut self, value: u32) -> &mut Self
pub fn dimension(&mut self, value: u32) -> &mut Self
Sets dimension to value.
The dimension every indexed vector in this field must have.
Sourcepub fn with_dimension(self, value: u32) -> Self
pub fn with_dimension(self, value: u32) -> Self
Returns self with dimension set to value.
The dimension every indexed vector in this field must have.
Trait Implementations§
Source§impl Clone for FirestoreVectorIndexConfig
impl Clone for FirestoreVectorIndexConfig
Source§impl Debug for FirestoreVectorIndexConfig
impl Debug for FirestoreVectorIndexConfig
impl Eq for FirestoreVectorIndexConfig
Source§impl From<FirestoreVectorIndexConfigInit> for FirestoreVectorIndexConfig
impl From<FirestoreVectorIndexConfigInit> for FirestoreVectorIndexConfig
Source§fn from(value: FirestoreVectorIndexConfigInit) -> Self
fn from(value: FirestoreVectorIndexConfigInit) -> Self
Converts to this type from the input type.
Source§impl Hash for FirestoreVectorIndexConfig
impl Hash for FirestoreVectorIndexConfig
impl StructuralPartialEq for FirestoreVectorIndexConfig
Auto Trait Implementations§
impl Freeze for FirestoreVectorIndexConfig
impl RefUnwindSafe for FirestoreVectorIndexConfig
impl Send for FirestoreVectorIndexConfig
impl Sync for FirestoreVectorIndexConfig
impl Unpin for FirestoreVectorIndexConfig
impl UnsafeUnpin for FirestoreVectorIndexConfig
impl UnwindSafe for FirestoreVectorIndexConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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