pub struct ScoredPoint {
pub id: PointId,
pub score: f32,
pub payload: Option<JsonObject>,
pub vector: Option<Vec<f32>>,
}Expand description
A scored query winner.
Fields§
§id: PointIdTyped point identifier.
score: f32Descending cosine similarity score.
payload: Option<JsonObject>Payload when requested by Query::with_payload.
vector: Option<Vec<f32>>Stored vector when requested by Query::with_vector.
Trait Implementations§
Source§impl Clone for ScoredPoint
impl Clone for ScoredPoint
Source§impl Debug for ScoredPoint
impl Debug for ScoredPoint
Source§impl<'de> Deserialize<'de> for ScoredPoint
impl<'de> Deserialize<'de> for ScoredPoint
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 ScoredPoint
impl RefUnwindSafe for ScoredPoint
impl Send for ScoredPoint
impl Sync for ScoredPoint
impl Unpin for ScoredPoint
impl UnsafeUnpin for ScoredPoint
impl UnwindSafe for ScoredPoint
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more