pub fn with_metadata(i: ValidationIssue, metadata: Value) -> ValidationIssueExpand 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.