#[non_exhaustive]pub struct FtScore {
pub value: f64,
pub explanation: Vec<String>,
}Expand description
A row’s relevance score, as withscores reports it.
With explainscore the server nests the score
breakdown alongside the number, so the number alone is not the whole field.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: f64The score itself.
explanation: Vec<String>The lines of the score breakdown, in the order the server prints them.
Empty unless explainscore was set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FtScore
impl<'de> Deserialize<'de> for FtScore
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
impl StructuralPartialEq for FtScore
Auto Trait Implementations§
impl Freeze for FtScore
impl RefUnwindSafe for FtScore
impl Send for FtScore
impl Sync for FtScore
impl Unpin for FtScore
impl UnsafeUnpin for FtScore
impl UnwindSafe for FtScore
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