use rio_macros::*; use rio_rs::ServiceObject; use rio_rs::state::local::LocalState; use rio_rs::state::ObjectStateManager; #[derive(ManagedState)] struct Test {} #[derive(TypeName, serde::Serialize, serde::Deserialize)] struct TestVec(Vec); #[derive(TypeName, serde::Serialize, serde::Deserialize)] struct NotTestVec(Vec); #[derive(Default, FromId, TypeName, ManagedState)] struct Test2 { id: String, #[managed_state] tests: Option, // #[managed_state] // not_tests: Option, } #[derive(Default, FromId, TypeName, ManagedState)] struct TestProvider { id: String, #[managed_state(provider = LocalState)] tests: Option, } impl ServiceObject for TestProvider {} fn main() {}