Function webhook_flows::route::new_handler
source · pub fn new_handler<T>(
f: fn(_: Vec<(String, String)>, _: String, _: HashMap<String, Value>, _: Vec<u8>) -> T
) -> Box<dyn Fn(Vec<(String, String)>, String, HashMap<String, Value>, Vec<u8>) -> Pin<Box<dyn Future<Output = ()>>>>where
T: Future<Output = ()> + 'static,Expand description
Helper for wrapping function to a Handler. Then the Handler should be inserted into Router.