Skip to main content

generate_entity_file

Function generate_entity_file 

Source
pub fn generate_entity_file(entity: &Entity) -> (String, String)
Expand description

Generate the entity structs file for a single entity.

Produces {snake_name}.rs with {Name}V1, {Name}V2, …, and pub type {Name} = {Name}V{latest};.