pub fn check_type(name: &str) -> Result<()>
Checks an object type’s name: it is the first part of its keys’ IDs.