mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 16:51:01 +00:00
Support filtering
This commit is contained in:
committed by
Kerollmops
parent
34f2ab7093
commit
e654f66223
@ -130,6 +130,12 @@ pub enum PatternMatch {
|
||||
NoMatch,
|
||||
}
|
||||
|
||||
impl PatternMatch {
|
||||
pub fn matches(&self) -> bool {
|
||||
matches!(self, PatternMatch::Match)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
Reference in New Issue
Block a user