Created
October 19, 2021 00:08
-
-
Save willemolding/78ea6081391f5139993dea17c37f77f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Serialize, Deserialize, Debug, PartialEq)] | |
struct SimplePartialType { | |
first: u8, | |
second: Value, | |
third: bool, | |
} | |
let mut de = Deserializer::from_reader_with_layout(example.as_slice(), &rule); | |
let result: SimplePartialType = Deserialize::deserialize(&mut de).unwrap(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment