pub struct RetrievalDoc {
pub doc_id: String,
pub score: f32,
pub rank: usize,
}Expand description
Retrieved document for evaluation
Fields§
§doc_id: StringDocument ID
score: f32Retrieval score
rank: usizeRank in results
Trait Implementations§
Source§impl Clone for RetrievalDoc
impl Clone for RetrievalDoc
Source§fn clone(&self) -> RetrievalDoc
fn clone(&self) -> RetrievalDoc
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 RetrievalDoc
impl Debug for RetrievalDoc
Source§impl<'de> Deserialize<'de> for RetrievalDoc
impl<'de> Deserialize<'de> for RetrievalDoc
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 RetrievalDoc
impl RefUnwindSafe for RetrievalDoc
impl Send for RetrievalDoc
impl Sync for RetrievalDoc
impl Unpin for RetrievalDoc
impl UnwindSafe for RetrievalDoc
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