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
fn main() { let xml = r#"<p:sldLayoutIdLst> <p:sldLayoutId id="2147483649" r:id="rId1"/> <p:sldLayoutId id="2147483650" r:id="rId2"/> </p:sldLayoutIdLst>"#; let result:CtSlideLayoutIdList = quick_xml::de::from_str(xml).unwrap(); println!("{:?}",quick_xml::se::to_string(&result)); } #[derive(Serialize,Deserialize,Debug)] #[serde(rename(serialize = "p:sldLayoutIdLst", deserialize = "sldLayoutIdLst"))] pub struct CtSlideLayoutIdList { #[serde(rename(serialize = "p:sldLayoutId", deserialize = "sldLayoutId"))] #[serde(skip_serializing_if = "Option::is_none")] pub sld_layout_id: Option<Vec<CtSlideLayoutIdListEntry>>, } #[derive(Serialize,Deserialize,Debug)] pub struct CtSlideLayoutIdListEntry{ #[serde(rename="@id")] pub id_attr:Option<String>, #[serde(rename="@r:id")] pub r_id_attr:Option<String>, }
i got an error "thread 'main' panicked at 'called Result::unwrap() on an Err value: Custom("duplicate field @id")'"
Result::unwrap()
Err
@id
The text was updated successfully, but these errors were encountered:
Namespaces does not supported yet with serde. Duplicate of #218.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
i got an error "thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: Custom("duplicate field@id
")'"The text was updated successfully, but these errors were encountered: