Skip to content
New issue

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

version 0.27 how to fix? #538

Closed
punisher1 opened this issue Jan 6, 2023 · 2 comments
Closed

version 0.27 how to fix? #538

punisher1 opened this issue Jan 6, 2023 · 2 comments
Labels
bug serde Issues related to mapping from Rust types to XML

Comments

@punisher1
Copy link

punisher1 commented Jan 6, 2023

#[derive(Serialize, Deserialize, Debug, PartialEq)]
pub struct PartExp {
    #[serde(rename = "@part")]
    pub part: Option<String>,

    #[serde(rename = "All")]
    pub all: Option<All>,
}
<PartExp part="piston_fem1_sim1" path="C:\Users\iori\Desktop\Simcenter3D\piston_fem1_sim1.sim">
    <All>
        <Expression name="p0" expression="0" value="0" type="Number"/>
        <Expression name="p1" expression="0" value="0" type="Number"/>
        <Expression name="p2" expression="0" value="0" type="Number"/>
        <Expression name="p3" expression="0" value="0" type="Number"/>
        <Expression name="p4" expression="0" value="0" type="Number"/>
        <Expression name="p5" expression="0" value="0" type="Number"/>
        <Expression name="p6" expression="20.00000" value="20.00000" type="Number"/>
    </All>
</PartExp>

Unexpected Event::End(\"All\")

@Mingun Mingun added bug serde Issues related to mapping from Rust types to XML labels Jan 6, 2023
@Mingun
Copy link
Collaborator

Mingun commented Jan 6, 2023

You did not provide all code that needed to reproduce this issue, so I assume this is the same as #510. Could you please check that this is the same issue and if true, close this one? Otherwise please edit your start message and add a definition of All struct.

@punisher1
Copy link
Author

same as #510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug serde Issues related to mapping from Rust types to XML
Projects
None yet
Development

No branches or pull requests

2 participants