Function spacetimedb_cli::generate::rust::autogen_rust_sum

source ·
pub fn autogen_rust_sum(ctx: &GenCtx, name: &str, sum_type: &SumType) -> String
Expand description

Generate a file which defines an enum corresponding to the sum_type.