pub fn contains_only_whitelisted_property_names<I, T>(
    iter: I
) -> Result<(), String>where
    I: IntoIterator<Item = T>,
    T: AsRef<str>,
Expand description

Check an iterator to see if any of its contents are not found in the whitelist of allowed properties. Returns Ok(()) if everything in the iterator is on the whitelist. If a string is found to be not on the whitelist, it is returned as the data in the Err()