pub trait QueryParser: Send + Sync {
// Required methods
fn parse(
&self,
query: &str,
context_date: Option<DateTime<Utc>>,
) -> ParsedQuery;
fn name(&self) -> &'static str;
// Provided method
fn is_available(&self) -> bool { ... }
}Expand description
Query parser trait - implement this for different parsing strategies
Required Methods§
Provided Methods§
Sourcefn is_available(&self) -> bool
fn is_available(&self) -> bool
Check if this parser is available/loaded