Skip to main content

with_metadata

Function with_metadata 

Source
pub fn with_metadata(i: ValidationIssue, metadata: Value) -> ValidationIssue
Expand description

Attach structured metadata to an existing issue.

Use this to attach extra JSON-serializable context (e.g., “expected” vs “actual” values) that can be used by machine-readable output formats.