pub struct SemanticQuery {
pub raw: String,
pub intent: QueryIntent,
pub keywords: Vec<String>,
pub scope: SearchScope,
}Expand description
A semantic search query with parsed intent and scope.
Fields§
§raw: StringOriginal query string.
intent: QueryIntentClassified intent.
keywords: Vec<String>Extracted keywords (lowercase).
scope: SearchScopeScope restriction.
Trait Implementations§
Source§impl Clone for SemanticQuery
impl Clone for SemanticQuery
Source§fn clone(&self) -> SemanticQuery
fn clone(&self) -> SemanticQuery
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 SemanticQuery
impl Debug for SemanticQuery
Source§impl<'de> Deserialize<'de> for SemanticQuery
impl<'de> Deserialize<'de> for SemanticQuery
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 SemanticQuery
impl RefUnwindSafe for SemanticQuery
impl Send for SemanticQuery
impl Sync for SemanticQuery
impl Unpin for SemanticQuery
impl UnsafeUnpin for SemanticQuery
impl UnwindSafe for SemanticQuery
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