Open averichev opened 5 months ago
Hello @averichev ,
Sorry for the delay. Can you try to rewrote:
#[derive(YaDeserialize, YaSerialize)]
#[yaserde(flatten)]
pub enum BodyEnum {
#[yaserde(rename="Fault", prefix="soap", flatten)]
Fault(Fault),
#[yaserde(rename="GetMessageResponse", prefix="soap", flatten)]
GetMessageResponse(GetMessageResponse),
}
I'm not sure the library handle multi #[yaserde
scope.
In addition you've missed one comma after #[yaserde(rename="GetMessageResponse"
.
And if you get against an error, then it's mostly a bug on namespace with enums.
Best, Marc-Antoine
Error on deserialize
Link to test
Is this my mistake in using the library or a bug?