pub type Action = fn(_: Command, _: Context) -> Result<ActionResult, ActionError>;
Action is type for command action. It returns Result<ActionResult, ActionError>.