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
The source XML I am serializing looks like this:
<property name="abc"> <string>Hello World!</string> </property>
Now I like to use the "string" to differentiate property types (string, bool, int, …).
#[derive(PartialEq, Debug, YaDeserialize)] #[yaserde(rename = "property")] pub struct Property { #[yaserde(attribute)] pub name: String, #[yaserde()] pub value: Option<PropertyValue>, } #[derive(PartialEq, Debug, YaDeserialize)] pub struct PropertyValue { #[yaserde(tag)] pub prop_type: String, #[yaserde()] pub prop_value: String, }
Is it implemented already? I couldn't find any documentation about that.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The source XML I am serializing looks like this:
Now I like to use the "string" to differentiate property types (string, bool, int, …).
Is it implemented already? I couldn't find any documentation about that.
The text was updated successfully, but these errors were encountered: