serde-typeinfo
"Serialize" type info to a runtime tag based on serde data model.
Examples
u8
integer will be "serialized" intoPrimitive::U8
enum without its value
use ;
assert_eq!;
- User defined struct with
serde::Serialize
trait implementation will be "serialized" intoTypeTag::Struct
as its name and its fields' names and types, not includes values.
use ;
use Serialize;
assert_eq!;
License
© 2023 Toshiki Teramura (@termoshtt)
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.