check_vector_opt

Function check_vector_opt 

Source
pub fn check_vector_opt(
    fields: &IndexMap<String, DmapField>,
    name: &str,
    expected_type: &Type,
) -> Result<(), DmapError>
Expand description

If name is in fields, verify that it is of the correct Type.

ยงErrors

If name is in fields, but is not a DmapField::Vector of expected_type.