Crates.io | yaserde |
lib.rs | yaserde |
version | 0.10.1 |
source | src |
created_at | 2018-04-09 17:17:08.272255 |
updated_at | 2024-06-05 06:09:23.213363 |
description | Serialization and deserialization library |
homepage | https://github.com/media-io/yaserde |
repository | https://github.com/media-io/yaserde |
max_upload_size | |
id | 59738 |
size | 102,593 |
Yet Another Serializer/Deserializer specialized for XML
This library will support XML de/ser-ializing with all specific features.
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
}
}