Struct cohere_rust::api::rerank::ReRankResult
source · pub struct ReRankResult {
pub index: u64,
pub relevance_score: f64,
}
Fields§
§index: u64
The index of the input document
relevance_score: f64
A relevance score assigned to the ranking
Trait Implementations§
source§impl Debug for ReRankResult
impl Debug for ReRankResult
source§impl<'de> Deserialize<'de> for ReRankResult
impl<'de> Deserialize<'de> for ReRankResult
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 ReRankResult
impl PartialEq for ReRankResult
source§fn eq(&self, other: &ReRankResult) -> bool
fn eq(&self, other: &ReRankResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReRankResult
Auto Trait Implementations§
impl RefUnwindSafe for ReRankResult
impl Send for ReRankResult
impl Sync for ReRankResult
impl Unpin for ReRankResult
impl UnwindSafe for ReRankResult
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