diff --git a/README.md b/README.md index 58d2401..3c0e796 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,21 @@ # yaserde Yet Another Serializer/Deserializer +## Goal +This library will support XML de/ser-ializing with all specific features. +## Supported types + +- [x] Struct +- [x] Vec +- [x] Enum +- [ ] Enum with complex types - [ ] Option -- [ ] Enum -- [ ] Visitor Type -> String / String -> Type -- [ ] namespace +## Decorators -- [ ] - - -std::str::FromStr -std::string::ToString +- [x] **root**: rename the based element. Used only at the XML root. +- [x] **rename**: be able to rename a field +- [x] **attribute**: this field is defined as an attribute +- [x] **text**: this field match to the text content +- [ ] **namespace**: defines the namespace of the field diff --git a/yaserde/tests/deserializer.rs b/yaserde/tests/deserializer.rs index c423f34..e1a8ef3 100644 --- a/yaserde/tests/deserializer.rs +++ b/yaserde/tests/deserializer.rs @@ -230,24 +230,6 @@ fn de_enum() { } } -// #[derive(YaDeserialize, PartialEq, Debug)] -// pub enum Alpha { -// Transparent, -// Opaque, -// } - -// impl Default for Alpha { -// fn default() -> Alpha { -// Alpha::Transparent -// } -// } - - - // let content = "Black"; - // convert_and_validate!(content, XmlStruct, XmlStruct{ - // background: Color::Black - // }); - let content = "Black"; convert_and_validate!(content, XmlStruct, XmlStruct{ background: Color::Black