pub struct ParsedQuery {
pub original: String,
pub keywords: Vec<String>,
pub intent: QueryIntent,
pub entities: Vec<ExtractedEntity>,
pub temporal: Option<TemporalConstraint>,
}Expand description
Parsed query with extracted intent and entities
Fields§
§original: StringOriginal query text
keywords: Vec<String>Extracted keywords
intent: QueryIntentDetected intent
entities: Vec<ExtractedEntity>Named entities extracted
temporal: Option<TemporalConstraint>Temporal constraints if any
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