Skip to main content

serialize_audit_json

Function serialize_audit_json 

Source
pub fn serialize_audit_json<DeadCode, Duplication, Complexity>(
    input: AuditJsonOutputInput<DeadCode, Duplication, Complexity>,
    mode: RootEnvelopeMode,
    analysis_run_id: Option<&str>,
) -> Result<Value, Error>
where DeadCode: Serialize, Duplication: Serialize, Complexity: Serialize,
Expand description

Serialize a typed audit JSON output envelope.

ยงErrors

Returns a serde error if the envelope or one of its nested payload sections cannot be converted to JSON.