We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a config that contains an entry watched_variables that I want to deserialize into the WatchedVariables structure defined below
watched_variables
WatchedVariables
{ "watched_variables": { "PickObject": ["n_objects"], }, }
#[derive(Clone, Debug, Default)] pub struct WatchedVariables(pub HashMap<String, Vec<String>>);
I tried to use #derive(Deserialize) but the key gets converted to lower case.
#derive(Deserialize)
How can I deserialize this without any modification of the key?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a config that contains an entry
watched_variables
that I want to deserialize into theWatchedVariables
structure defined belowI tried to use
#derive(Deserialize)
but the key gets converted to lower case.How can I deserialize this without any modification of the key?
The text was updated successfully, but these errors were encountered: