pub fn generate_struct_layouts( module: &str, struct_opt: &Option<String>, type_params_opt: &Option<Vec<TypeTag>>, state: &OnDiskStateView ) -> Result<()>