macro_rules! init_command {
    (
		R: $response:ty,
		E: $error:ty $(,)?
        {
			$(
				$command:ty:$handler:expr $(=>($($injectable:ident $(( $($arg:ident),* ))? ),*))?
			),*
			$(,)?
		}
    ) => { ... };
    (
		E: $error:ty,
		R: $response:ty $(,)?
        {
			$(
				$command:ty:$handler:expr $(=>($($injectable:ident $(( $($arg:ident),* ))? ),*))?
			),*
			$(,)?
		}
	) => { ... };
}
Expand description

init_command_handler creating macro Note that crate must have crate::dependencies must exist