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 currently have the following XML for deserialization:
<Levels> <CensorshipLevel Level="0" /> </Levels>
Which I wrote the following Rust code for it:
extern crate serde; extern crate quick_xml; #[derive(Debug, Clone, Serialize, Deserialize)] crate struct CensorshipLevel { #[serde(rename = "Level")] crate level: u8 }
However, when I attempt to deserialize it, I see this in my logs:
[src\system\event_handler.rs:266] quick_xml::de::from_str::<BotConfig>(&config_string) = Err( Custom( "missing field `Level`", ), )
Saying that the field Level is missing.
Level
How can I fix this issue?
The text was updated successfully, but these errors were encountered:
Typically the code that handles the XML deserialization is located here:
https://github.com/HT-Studios/HarTex-rust-discord-bot/tree/infdev/src/xml_deserialization
Just in case additional information on my implementation is required.
Sorry, something went wrong.
Any help is appreciated.
No branches or pull requests
I currently have the following XML for deserialization:
Which I wrote the following Rust code for it:
However, when I attempt to deserialize it, I see this in my logs:
Saying that the field
Level
is missing.How can I fix this issue?
The text was updated successfully, but these errors were encountered: