-
Notifications
You must be signed in to change notification settings - Fork 29
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
Derive: Lists requires child type to implement FromStr
and Display
, which are not implemented
#7
Comments
Hello @tobz1000 , I think it's a prefix issue, I have to look on it in details. I think it's possible that Marc-Antoine |
I have the same Issue with slightly differences. The error message only tells me that Unfortunately I cannot provide the whole schema file, but I try to provide the relevant parts if you need. I get the following error message:
My code is nearly the same, you provided on the cargo site: #[macro_use]
extern crate yaserde_derive;
use std::io::prelude::*;
use xml_schema_derive::XmlSchema;
use yaserde::{YaDeserialize, YaSerialize};
#[derive(Debug, XmlSchema)]
#[xml_schema(source = "target/feat/Schema.xsd")]
struct MySchema; Note, that I do not define any
|
After some further research I think the problem is that the macro |
Attempting to generate types for this .xsd:
https://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/os/schemas/edm.xsd
I get the compile errors:
The relevant generated code looks like (note the
.parse()
and.to_string()
):Here is the code I'm using to derive, in case there's something wrong with it:
The text was updated successfully, but these errors were encountered: