mirror of
https://github.com/nushell/nushell
synced 2025-01-02 16:29:00 +00:00
ebe42241fe
# Description This PR allows the helper attribute `nu_value(rename = "...")` to be used on struct fields and enum variants. This allows renaming keys and variants just like [`#[serde(rename = "name")]`](https://serde.rs/field-attrs.html#rename). This has no singular variants for `IntoValue` or `FromValue`, both need to use the same (but I think this shouldn't be an issue for now). # User-Facing Changes Users of the derive macros `IntoValue` and `FromValue` may now use `#[nu_value(rename = "...")]` to rename single fields, but no already existing code will break. |
||
---|---|---|
.. | ||
attributes.rs | ||
case.rs | ||
error.rs | ||
from.rs | ||
into.rs | ||
lib.rs | ||
names.rs | ||
tests.rs |