feat(service): Add isolate_with plugin query config

This query parameter will isolate search results when the specific regex query is matched.
This commit is contained in:
Michael Aaron Murphy 2021-10-20 21:39:01 +02:00
parent c330552c20
commit e7e6007e26
4 changed files with 26 additions and 0 deletions

View file

@ -49,6 +49,13 @@ pub struct PluginQuery {
#[serde(default)]
pub isolate: bool,
#[serde(
default,
skip_serializing_if = "Option::is_none",
with = "::serde_with::rust::unwrap_or_skip"
)]
pub isolate_with: Option<Cow<'static, str>>,
#[serde(default)]
pub no_sort: bool,