Add meilisearch_types::features module

This commit is contained in:
Louis Dureuil 2023-06-26 12:21:40 +02:00
parent 2d34005965
commit 29ec02d4d4
No known key found for this signature in database
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone, Copy, Default)]
#[serde(rename_all = "camelCase", default)]
pub struct RuntimeTogglableFeatures {
pub score_details: bool,
pub vector_store: bool,
}
#[derive(Default, Debug, Clone, Copy)]
pub struct InstanceTogglableFeatures {
pub metrics: bool,
}

View File

@ -2,6 +2,7 @@ pub mod compression;
pub mod deserr;
pub mod document_formats;
pub mod error;
pub mod features;
pub mod index_uid;
pub mod index_uid_pattern;
pub mod keys;