Crates.io | yaserde |
lib.rs | yaserde |
version | 0.12.0 |
source | src |
created_at | 2018-04-09 17:17:08.272255 |
updated_at | 2024-11-05 10:50:17.55402 |
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 | 105,180 |
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
}
}