in src/plugin/plugin_mongodb.rs [76:91]
fn hook_manager_execute_namespace_method(
&self, function_name: &str,
) -> (Box<BeforeExecuteHook>, Box<AfterExecuteHook>) {
let function_name = function_name.to_owned();
(
Box::new(move |request_id, execute_data| {
before_manager_crud_hook(
request_id,
execute_data,
&function_name,
CrudScope::Namespace,
)
}),
Box::new(after_manager_crud_hook),
)
}