[Feature Request] - Implement Serializing and Deserialzing for keyevent?
tramhao opened this issue · 3 comments
tramhao commented
Description
I need to save the key config so that I can change it in config.
Changes
Implement serializing and deserialing for keyevent.
- ...
Implementation
Haven't thought of how to do it.
veeso commented
Merged into 1.4.0 version.
Please, add the serialize
feature into your cargo.toml to tui-realm feature, in order to use Deserialize
and Serialize
traits.
tramhao commented
thanks so much!
tramhao commented
I'm getting lost here. Thanks for your implementation of serialize and deserialize. However, I'm facing two problems here:
- I cannot write it to toml. Probably it's lack of certain feature. Save is always failed due to wrong type.
- I cannot use any configuration value from config, in component implementation. Is there a better way to do it?
Thanks so much!