pub struct VectorRecord { /* private fields */ }Expand description
A vector store record.
Implementations§
Source§impl VectorRecord
impl VectorRecord
Sourcepub fn with_dimension(
self,
dimension: VectorDimension,
) -> Result<Self, InvalidDimensionError>
pub fn with_dimension( self, dimension: VectorDimension, ) -> Result<Self, InvalidDimensionError>
Sets and validates the expected dimension.
Sourcepub const fn with_similarity_metric(
self,
similarity_metric: SimilarityMetric,
) -> Self
pub const fn with_similarity_metric( self, similarity_metric: SimilarityMetric, ) -> Self
Sets the similarity metric.
Sourcepub fn with_metadata(self, metadata: VectorMetadata) -> Self
pub fn with_metadata(self, metadata: VectorMetadata) -> Self
Sets vector metadata.
Sourcepub const fn dimension(&self) -> Option<VectorDimension>
pub const fn dimension(&self) -> Option<VectorDimension>
Returns the validated dimension, if present.
Sourcepub const fn similarity_metric(&self) -> Option<SimilarityMetric>
pub const fn similarity_metric(&self) -> Option<SimilarityMetric>
Returns the similarity metric, if present.
Sourcepub const fn metadata(&self) -> &VectorMetadata
pub const fn metadata(&self) -> &VectorMetadata
Returns vector metadata.
Trait Implementations§
Source§impl Clone for VectorRecord
impl Clone for VectorRecord
Source§fn clone(&self) -> VectorRecord
fn clone(&self) -> VectorRecord
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 VectorRecord
impl Debug for VectorRecord
Source§impl PartialEq for VectorRecord
impl PartialEq for VectorRecord
Source§fn eq(&self, other: &VectorRecord) -> bool
fn eq(&self, other: &VectorRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VectorRecord
Auto Trait Implementations§
impl Freeze for VectorRecord
impl RefUnwindSafe for VectorRecord
impl Send for VectorRecord
impl Sync for VectorRecord
impl Unpin for VectorRecord
impl UnsafeUnpin for VectorRecord
impl UnwindSafe for VectorRecord
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