Skip to main content

field_any

Function field_any 

Source
pub fn field_any<'a>(map: &'a Expr, name: &str) -> Option<&'a Expr>
Expand description

Look up a field by name, accepting either a bare-symbol key or an Expr::String key. Use this for provider-style records (OpenAI, Ollama, MCP) that mix symbol and string keys; use field when only the bare-symbol form is valid.