pub fn validate_structureof_commit(commit: &Variant) -> Result<(), Error>