pub struct RankingEntry {
pub index: u32,
pub relevance_score: f64,
}Expand description
One entry in RerankingResult::ranking.
Fields§
§index: u32Index of the document in the input list before reranking.
relevance_score: f64Relevance score assigned by the model. Higher = more relevant.
Trait Implementations§
Source§impl Clone for RankingEntry
impl Clone for RankingEntry
Source§fn clone(&self) -> RankingEntry
fn clone(&self) -> RankingEntry
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 RankingEntry
impl Debug for RankingEntry
Source§impl<'de> Deserialize<'de> for RankingEntry
impl<'de> Deserialize<'de> for RankingEntry
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
Source§impl PartialEq for RankingEntry
impl PartialEq for RankingEntry
Source§fn eq(&self, other: &RankingEntry) -> bool
fn eq(&self, other: &RankingEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RankingEntry
impl Serialize for RankingEntry
impl Copy for RankingEntry
impl StructuralPartialEq for RankingEntry
Auto Trait Implementations§
impl Freeze for RankingEntry
impl RefUnwindSafe for RankingEntry
impl Send for RankingEntry
impl Sync for RankingEntry
impl Unpin for RankingEntry
impl UnsafeUnpin for RankingEntry
impl UnwindSafe for RankingEntry
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