Skip to main content

prepend_warnings

Function prepend_warnings 

Source
pub fn prepend_warnings(shadowed: &[ShadowedField], body: String) -> String
Expand description

Prepends one warning line per shadowed field to body, for in-band (MCP) surfacing. Returns body unchanged when nothing was shadowed.