mod operations; use std::{any::Any, sync::Arc}; pub use operations::*; use serde::{de::DeserializeOwned, Serialize}; pub trait Setting: Serialize + DeserializeOwned + Send + Sync { fn name() -> &'static str; } #[derive(Clone, Copy, Hash, PartialEq, Eq, Debug)] pub struct ObjectSettingPair<'s> { pub object_kind: &'s str, pub setting_name: &'s str, } impl<'s> ObjectSettingPair<'s> { pub fn new(object_kind: &'s str, setting_name: &'s str) -> Self { Self { object_kind, setting_name, } } }