Skip to main content

Module embed_enum_rename_all

Module embed_enum_rename_all 

Source

Functions§

rename_all_across_storage_mappings
The renamed labels flow into every string storage mapping: native enum (default, explicit type = enum, and named type = enum("...")) and the plain type = text column. rename_all never affects the enum type name.
rename_all_derives_labels
#[column(rename_all = ...)] derives each variant’s default label; an explicit per-variant #[column(variant = ...)] still wins.
rename_all_round_trip
End-to-end: a renamed enum round-trips through the database (create + read).