pub struct ScoredEntity {
pub uri: String,
pub score: f64,
pub source: ScoreSource,
pub metadata: HashMap<String, String>,
}Expand description
Entity with relevance score
Fields§
§uri: StringEntity URI
score: f64Relevance score (0.0 - 1.0)
source: ScoreSourceSource of the score (vector, keyword, or fused)
metadata: HashMap<String, String>Additional metadata
Trait Implementations§
Source§impl Clone for ScoredEntity
impl Clone for ScoredEntity
Source§fn clone(&self) -> ScoredEntity
fn clone(&self) -> ScoredEntity
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 ScoredEntity
impl Debug for ScoredEntity
Source§impl<'de> Deserialize<'de> for ScoredEntity
impl<'de> Deserialize<'de> for ScoredEntity
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 ScoredEntity
impl RefUnwindSafe for ScoredEntity
impl Send for ScoredEntity
impl Sync for ScoredEntity
impl Unpin for ScoredEntity
impl UnwindSafe for ScoredEntity
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