Skip to main content

required

Function required 

Source
pub fn required<'a>(
    map: &'a Expr,
    name: &str,
    context: &str,
) -> Result<&'a Expr>
Expand description

Look up a required field, returning a context-labeled error when it is missing. Accepts either key form, matching field_any.