pub struct VectorPoint { /* private fields */ }Expand description
Record stored in a vector database.
Implementations§
Source§impl VectorPoint
impl VectorPoint
Sourcepub fn new(id: Uuid, embedding: EmbeddingVector) -> Self
pub fn new(id: Uuid, embedding: EmbeddingVector) -> Self
Creates a new vector point with optional metadata.
Sourcepub fn with_metadata(self, metadata: Value) -> Self
pub fn with_metadata(self, metadata: Value) -> Self
Assigns metadata to the point.
Assigns tags to the point.
Sourcepub fn embedding(&self) -> &EmbeddingVector
pub fn embedding(&self) -> &EmbeddingVector
Returns the embedding reference.
Returns tags associated with the point.
Trait Implementations§
Source§impl Clone for VectorPoint
impl Clone for VectorPoint
Source§fn clone(&self) -> VectorPoint
fn clone(&self) -> VectorPoint
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 Debug for VectorPoint
impl Debug for VectorPoint
Source§impl<'de> Deserialize<'de> for VectorPoint
impl<'de> Deserialize<'de> for VectorPoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VectorPoint
impl RefUnwindSafe for VectorPoint
impl Send for VectorPoint
impl Sync for VectorPoint
impl Unpin for VectorPoint
impl UnwindSafe for VectorPoint
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