Closed
Description
When decoding via the serialization-serde
feature, it fails with DecodeNotImplemented("deserialize_any for keys")
even though I'm only interested in certain values (eg. AutoColorization
only in this case).
#[derive(Debug, Serialize, Deserialize, PartialEq)]
pub struct DesktopReg {
AutoColorization: u32,
}
pub fn decode_example() -> Result<DesktopReg> {
let hkcu = RegKey::predef(HKEY_CURRENT_USER);
let desktop_key = hkcu.open_subkey_with_flags("Control Panel\\Desktop", KEY_READ)?;
let decoded: DesktopReg = desktop_key.decode()?;
Ok(decoded)
}
Activity
gentoo90 commentedon Feb 17, 2023
Fixed in
winreg-0.11.0
.PS: on my machine there's no
AutoColorization
value in this registry key, so you might want to useOption<u32>
.