pub fn check_scalar(
fields: &IndexMap<String, DmapField>,
name: &str,
expected_type: &Type,
) -> Result<(), DmapError>Expand description
Verify that name exists in fields and is of the correct Type.
ยงErrors
If name is not in fields.
If name is in fields, but is not a DmapField::Scalar of expected_type.