Skip to main content

generate_schema_rs

Function generate_schema_rs 

Source
pub fn generate_schema_rs(schema_map: &IndexMap<String, FieldInfo>, dir: &Path)
Expand description

Generate schema.rs in dir from schema_map.

The file contains one pub const <NAME>: SchemaEntry = SchemaEntry { … }; block per entry, sorted alphabetically. Panics if the file cannot be written.