pub fn failure(command: &str, code: &str, message: &str) -> Envelope<()>Expand description
The envelope of command when it failed before producing a report:
ok is false, data is null and one error diagnostic explains
why.
Args:
command: The command that was requested.
code: USAGE_CODE, FAILED_CODE or NO_REPORT_CODE.
message: What went wrong; it is redacted.
Returns: The envelope to render.