pub fn missing_field_error(name: &str, span: Span) -> Error
Returns an error with a “missing required field” message.
The error will be spanned to span.
span