1 2 3 4 5 6 7 8 9
use openapiv3::Operation; pub struct OperationRegister { // module_path: &'static str, pub name: &'static str, pub constructor: &'static (dyn Sync + Send + Fn() -> Operation), } inventory::collect!(OperationRegister);