pub fn emit<W: Write, T: Serialize>(
writer: &mut W,
code: &str,
payload: &T,
) -> Result<(), Error>Expand description
Emit a single envelope payload to writer. The payload is wrapped with
a top-level code field and written as one line of JSON followed by a
newline.
Redacts AFDATA _secret fields by default and never panics on well-formed
input — but we still funnel through this single seam so print_stdout /
print_stderr stay clippy-denied at crate level.