Skip to main content

entry_required_str_any

Function entry_required_str_any 

Source
pub fn entry_required_str_any<'a>(
    entries: &'a [(Expr, Expr)],
    name: &str,
    expected: &'static str,
) -> Result<&'a str>
Expand description

Namespace-agnostic sibling of entry_required_str: matches a bare-symbol OR Expr::String key (via entry_required/entry_field_any). Use this for provider records (OpenAI, Ollama, MCP) that mix symbol and string keys.