Product Promotion
0x5a.live
for different kinds of informations and explorations.
GitHub - media-io/yaserde: Yet Another Serializer/Deserializer
Yet Another Serializer/Deserializer. Contribute to media-io/yaserde development by creating an account on GitHub.
Visit SiteGitHub - media-io/yaserde: Yet Another Serializer/Deserializer
Yet Another Serializer/Deserializer. Contribute to media-io/yaserde development by creating an account on GitHub.
Powered by 0x5a.live 💗
yaserde
Yet Another Serializer/Deserializer specialized for XML
Goal
This library will support XML de/ser-ializing with all specific features.
Supported types
- Struct
- Vec
- Enum
- Enum with complex types
- Option
- String
- bool
- number (u8, i8, u32, i32, f32, f64)
Attributes
- attribute: this field is defined as an attribute
- default: defines the default function to init the field
- flatten: Flatten the contents of the field
- namespace: defines the namespace of the field
- rename: be able to rename a field
- root: rename the based element. Used only at the XML root.
- skip_serializing: Exclude this field from the serialized output. More details...
- skip_serializing_if: Skip the serialisation for this field if the condition is true. More details...
- text: this field match to the text content
Custom De/Ser-rializer
Any type can define a custom deserializer and/or serializer. To implement it, define the implementation of YaDeserialize/YaSerialize
impl YaDeserialize for MyType {
fn deserialize<R: Read>(reader: &mut yaserde::de::Deserializer<R>) -> Result<Self, String> {
// deserializer code
}
}
impl YaSerialize for MyType {
fn serialize<W: Write>(&self, writer: &mut yaserde::ser::Serializer<W>) -> Result<(), String> {
// serializer code
}
}
Rust Resources
are all listed below.
GitHub - rodrigorc/papercraft: Papercraft is a tool to unwrap 3D models.
resource
~/github.com
resource
GitHub - zellij-org/zellij: A terminal workspace with batteries included
resource
~/github.com
resource
GitHub - Rustixir/darkbird: In-memory database inspired by erlang mnesia
resource
~/github.com
resource
GitHub - serayuzgur/weld: Full fake REST API generator written with Rust
resource
~/github.com
resource
GitHub - LemmyNet/lemmy: 🐀 A link aggregator and forum for the fediverse
resource
~/github.com
resource
GitHub - osrg/rustybgp: BGP implemented in the Rust Programming Language
resource
~/github.com
resource
GitHub - shssoichiro/oxipng: Multithreaded PNG optimizer written in Rust
resource
~/github.com
resource
GitHub - Linus-Mussmaecher/rucola: Terminal-based markdown note manager.
resource
~/github.com
resource
GitHub - BurntSushi/rust-csv: A CSV parser for Rust, with Serde support.
resource
~/github.com
resource
Made with ❤️
to provide different kinds of informations and resources.