pub struct QueryFeatures {
pub word_count: usize,
pub sentence_count: usize,
pub question_words: Vec<String>,
pub technical_terms: Vec<String>,
pub has_code: bool,
pub has_numbers: bool,
pub has_dates: bool,
pub language: String,
}Expand description
Features extracted from the query
Fields§
§word_count: usize§sentence_count: usize§question_words: Vec<String>§technical_terms: Vec<String>§has_code: bool§has_numbers: bool§has_dates: bool§language: StringTrait Implementations§
Source§impl Clone for QueryFeatures
impl Clone for QueryFeatures
Source§fn clone(&self) -> QueryFeatures
fn clone(&self) -> QueryFeatures
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 QueryFeatures
impl Debug for QueryFeatures
Source§impl<'de> Deserialize<'de> for QueryFeatures
impl<'de> Deserialize<'de> for QueryFeatures
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 QueryFeatures
impl RefUnwindSafe for QueryFeatures
impl Send for QueryFeatures
impl Sync for QueryFeatures
impl Unpin for QueryFeatures
impl UnwindSafe for QueryFeatures
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