Open max-ishere opened 1 year ago
Just to be clear I wanted to get some feedback to know if this is something I should try to implement.
Sorry for the late reply. I agree from a usability perspective.
Right now, the crate more closely follows the format of the XML file that is inside of every KeePass database, where there can be arbitrary key-value pairs called fields, and username, title and password are just special cases. Handling fields as a HashMap<String, Value>
simplifies the parsing and writing code.
We provide the Entry::get_username
and other convenience functions to retrieve the most important field values.
I'm not sure if you were referring to our feature-gated serde support when you were talking about custom serde code. I would be willing to accept a PR that has a custom impl Serialize for Entry
which generates more intuitive JSON output.
Hi, thanks for the reply. The custom serde code is the implementation of deserialize that puts specific xml keys into a struct
Here is what I expected an entry to look like. Imo it's better.
My expectation comes seeing it this way in a GUI. Another reason is that renaming a string key is not a good idea.
This would require adding custom serde code tho..