pub struct ExpandedTerm {
pub term: String,
pub strategy: ExpansionStrategy,
pub confidence: f32,
pub weight: f32,
pub source_entities: Vec<String>,
pub relationship: Option<String>,
}Expand description
Expanded term with metadata
Fields§
§term: StringThe expanded term
strategy: ExpansionStrategyExpansion strategy that generated this term
confidence: f32Confidence score
weight: f32Weight/importance score
source_entities: Vec<String>Source entities that led to this expansion
relationship: Option<String>Semantic relationship to original query
Trait Implementations§
Source§impl Clone for ExpandedTerm
impl Clone for ExpandedTerm
Source§fn clone(&self) -> ExpandedTerm
fn clone(&self) -> ExpandedTerm
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 ExpandedTerm
impl Debug for ExpandedTerm
Source§impl<'de> Deserialize<'de> for ExpandedTerm
impl<'de> Deserialize<'de> for ExpandedTerm
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 ExpandedTerm
impl RefUnwindSafe for ExpandedTerm
impl Send for ExpandedTerm
impl Sync for ExpandedTerm
impl Unpin for ExpandedTerm
impl UnwindSafe for ExpandedTerm
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