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;