pub struct ParsedQuery {
pub search_terms: String,
pub temporal_filter: Option<TemporalFilter>,
pub metadata_filters: Vec<MetadataFilterHint>,
pub search_type: SearchType,
pub confidence: f64,
}Expand description
Parsed query with extracted intent and filters
Fields§
§search_terms: StringThe cleaned search terms to use
temporal_filter: Option<TemporalFilter>Temporal constraints
metadata_filters: Vec<MetadataFilterHint>Metadata filters extracted from query
search_type: SearchTypeSuggested search type
confidence: f64Confidence in the parse (0.0 - 1.0)
Trait Implementations§
Source§impl Clone for ParsedQuery
impl Clone for ParsedQuery
Source§fn clone(&self) -> ParsedQuery
fn clone(&self) -> ParsedQuery
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 ParsedQuery
impl Debug for ParsedQuery
Source§impl<'de> Deserialize<'de> for ParsedQuery
impl<'de> Deserialize<'de> for ParsedQuery
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 ParsedQuery
impl RefUnwindSafe for ParsedQuery
impl Send for ParsedQuery
impl Sync for ParsedQuery
impl Unpin for ParsedQuery
impl UnwindSafe for ParsedQuery
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