pub struct VectorMatch {
pub id: String,
pub score: f64,
pub values: Option<Vec<f64>>,
pub metadata: Option<Value>,
pub namespace: Option<String>,
}Expand description
A single matching vector from a query.
Fields§
§id: StringThe vector ID.
score: f64Similarity score (higher is more similar for cosine/dot product).
values: Option<Vec<f64>>The vector values (only present if returnValues: true).
metadata: Option<Value>Metadata associated with the vector.
namespace: Option<String>The namespace this vector belongs to.
Trait Implementations§
Source§impl Clone for VectorMatch
impl Clone for VectorMatch
Source§fn clone(&self) -> VectorMatch
fn clone(&self) -> VectorMatch
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 VectorMatch
impl Debug for VectorMatch
Source§impl<'de> Deserialize<'de> for VectorMatch
impl<'de> Deserialize<'de> for VectorMatch
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 VectorMatch
impl RefUnwindSafe for VectorMatch
impl Send for VectorMatch
impl Sync for VectorMatch
impl Unpin for VectorMatch
impl UnsafeUnpin for VectorMatch
impl UnwindSafe for VectorMatch
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