From 29ec02d4d42d1d2bd6372df504e3b67b380d7f9d Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 26 Jun 2023 12:21:40 +0200 Subject: [PATCH] Add meilisearch_types::features module --- meilisearch-types/src/features.rs | 13 +++++++++++++ meilisearch-types/src/lib.rs | 1 + 2 files changed, 14 insertions(+) create mode 100644 meilisearch-types/src/features.rs diff --git a/meilisearch-types/src/features.rs b/meilisearch-types/src/features.rs new file mode 100644 index 000000000..6d02fc47b --- /dev/null +++ b/meilisearch-types/src/features.rs @@ -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, +} diff --git a/meilisearch-types/src/lib.rs b/meilisearch-types/src/lib.rs index 99c459903..dbdec14fc 100644 --- a/meilisearch-types/src/lib.rs +++ b/meilisearch-types/src/lib.rs @@ -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;