mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
specifying generic structure now for verifiy_field_exists
This commit is contained in:
parent
2a04ecccc4
commit
c06f386ac3
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ use meilisearch_types::milli::update::Setting;
|
|||
use meilisearch_types::settings::{settings, SecretPolicy, Settings, Unchecked};
|
||||
use meilisearch_types::tasks::KindWithContent;
|
||||
use tracing::debug;
|
||||
use meilisearch_types::FieldIdMapReader;
|
||||
|
||||
use super::settings_analytics::*;
|
||||
use crate::analytics::Analytics;
|
||||
|
@ -22,7 +23,7 @@ macro_rules! make_setting_route {
|
|||
($route:literal, $update_verb:ident, $type:ty, $err_ty:ty, $attr:ident, $camelcase_attr:literal, $analytics:ident) => {
|
||||
#[allow(dead_code)]
|
||||
|
||||
pub fn verify_field_exists(settings: Settings) {
|
||||
pub fn verify_field_exists<FH: FieldIdMapReader>(settings: Settings<FH>) {
|
||||
match settings {
|
||||
Settings { $attr: _, .. } => {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue