wip: RawXml ser/de works well, still a few more complex cases to test but seems good wnough for the opnsense config case

This commit is contained in:
Jean-Gabriel Gill-Couture
2024-10-20 07:39:41 -04:00
parent e0acbf304b
commit ebdc83b21b
6 changed files with 302 additions and 37 deletions

View File

@@ -8,7 +8,8 @@ impl YaSerialize for Interfaces {
&self,
writer: &mut yaserde::ser::Serializer<W>,
) -> Result<(), String> {
todo!()
writer.write("Interfaces serializer TODO");
Ok(())
}
fn serialize_attributes(
@@ -88,7 +89,7 @@ impl YaDeserialize for Interfaces {
}
let peek = reader.peek()?;
let mut read_next = true;
let read_next = true;
if let XmlEvent::EndElement { name } = peek {
if name.local_name == "interfaces" {
println!("Got endElement interfaces, not reading next event");