For example, I have a string dog 5 true
and want to serialize it into a Rust data struct using serde:
struct Pet {
pub name: String,
pub age: u32,
pub alive: bool,
}
Is it possible? If it is, how to accomplish that with Serde custom deserializer?