Crates.io | enum-helper-macros |
lib.rs | enum-helper-macros |
version | 0.0.1 |
source | src |
created_at | 2024-08-05 06:19:02.332992 |
updated_at | 2024-08-05 06:19:02.332992 |
description | Helper macros for working with enums |
homepage | |
repository | https://github.com/marioiordanov/enum-helper-macros |
max_upload_size | |
id | 1325567 |
size | 8,695 |
fn all_variants_serde_renames() -> Vec<String>
, returning all variants serde rename attributes data.fn variant_name(&self) -> &str
, returning the serde rename attribute data.Both macros work only if there is #[serde(rename=...)]
attribute applied to all of the enum variants