2 releases
0.1.3 | Apr 26, 2023 |
---|---|
0.1.1 | Apr 26, 2023 |
#2238 in Procedural macros
23 downloads per month
12KB
188 lines
enum-str-derive
A crate to serialize/deserialize enums into/from a string.
Converts enums to a string when using serde and postgres.
Documentation
Implementation
#[derive(Clone, Copy, Debug, EnumStr)]
pub enum ChannelTypeShortcode {
Text, // TEXT
#[enum_str(string = "w")]
Theater, // w
}
Dependencies
~2MB
~42K SLoC