pub fn validate_command(action: &str, payload: Value) -> Result<Value, RpcError>
Validates a command payload sent through the API before it is queued.