pub type ReadResource = fn(&Doc, &ObjId) -> Result<Box<dyn Any>, ModelError>;
Read a record, boxed, from the map it is stored in.