2023-06-26 12:21:40 +02:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
2023-07-06 14:20:58 +02:00
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone, Copy, Default, PartialEq, Eq)]
|
2023-06-26 12:21:40 +02:00
|
|
|
#[serde(rename_all = "camelCase", default)]
|
|
|
|
pub struct RuntimeTogglableFeatures {
|
|
|
|
pub vector_store: bool,
|
2023-10-14 00:12:54 +02:00
|
|
|
pub metrics: bool,
|
2024-02-05 13:29:01 +01:00
|
|
|
pub logs_route: bool,
|
2024-07-08 16:46:53 +02:00
|
|
|
pub edit_documents_by_function: bool,
|
2024-07-17 11:13:37 +02:00
|
|
|
pub contains_filter: bool,
|
2023-06-26 12:21:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Default, Debug, Clone, Copy)]
|
|
|
|
pub struct InstanceTogglableFeatures {
|
|
|
|
pub metrics: bool,
|
2024-02-05 14:05:24 +01:00
|
|
|
pub logs_route: bool,
|
2024-07-17 11:13:37 +02:00
|
|
|
pub contains_filter: bool,
|
2023-06-26 12:21:40 +02:00
|
|
|
}
|