You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, all caps names don't work well with JSON serialization. For example, VaultPositionType::UNLOCKED is serialized to JSON string "u_n_l_o_c_k_e_d". Imo, this is undesirable.
To fix this, we can either no longer naming the variants in all caps:
NOTE: This is a state- and API-breaking change!
The
VaultPositionType
is defined asHowever, all caps names don't work well with JSON serialization. For example,
VaultPositionType::UNLOCKED
is serialized to JSON string"u_n_l_o_c_k_e_d"
. Imo, this is undesirable.To fix this, we can either no longer naming the variants in all caps:
or use
#[serde(rename)]
:The text was updated successfully, but these errors were encountered: