pub fn expect_object(d: Doc<'_>, name: &str) -> Result<()>Expand description
Check that what is stored under this collection is an object at all, which is what the derive calls before it reads the fields.
ยงErrors
Code::Corrupt for anything that is not an object.