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
Because imgui::Key does not support serde, this kind of thing is not possible.
imgui::Key
serde
use serde::{Deserialize, Serialize}; use imgui::Key; #[derive(Serialize, Deserialize)] pub struct HoykeyConfig { some_hotkey: Key, // ... }
Providing proxy enum to use #[serde(remote="...")] is kind of viable, but not recommendable since imgui::Key has 140 entries.
#[serde(remote="...")]
Make io related enums of this crate to derive serde::{Serialize, Deserialize}.
serde::{Serialize, Deserialize}
The text was updated successfully, but these errors were encountered:
add ImguiKeyProxy enum to use with serde remote
be647bb
imgui-rs/imgui-rs#769
No branches or pull requests
Is your feature request related to a problem? Please describe.
Because
imgui::Key
does not supportserde
, this kind of thing is not possible.Providing proxy enum to use
#[serde(remote="...")]
is kind of viable, but not recommendable sinceimgui::Key
has 140 entries.Describe the solution you'd like
Make io related enums of this crate to derive
serde::{Serialize, Deserialize}
.The text was updated successfully, but these errors were encountered: