Crates.io | enum-str-derive |
lib.rs | enum-str-derive |
version | 0.1.3 |
source | src |
created_at | 2023-04-26 03:04:33.919295 |
updated_at | 2023-04-26 23:42:02.990919 |
description | A crate to serialize/deserialize enums into/from a string. |
homepage | |
repository | https://github.com/enzious/enum-str-derive |
max_upload_size | |
id | 848999 |
size | 13,280 |
A crate to serialize/deserialize enums into/from a string.
Converts enums to a string when using serde and postgres.
#[derive(Clone, Copy, Debug, EnumStr)]
pub enum ChannelTypeShortcode {
Text, // TEXT
#[enum_str(string = "w")]
Theater, // w
}