mod operations; pub use operations::*; use serde::{de::DeserializeOwned, Deserialize, Serialize}; use serde_json::Value; pub trait Setting: Serialize + DeserializeOwned + Send + Sync { fn name() -> &'static str; } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct AnySetting(pub Value); impl Setting for AnySetting { fn name() -> &'static str { "any" } }