diff options
author | Sam Scott <sam.scott89@gmail.com> | 2017-03-12 13:52:25 -0400 |
---|---|---|
committer | Sam Scott <sam.scott89@gmail.com> | 2017-03-12 13:52:25 -0400 |
commit | 317b8b17f3e3656cdc64fc6435889d005aa9a8af (patch) | |
tree | 5ad198434680593d4eaf7b677ed2da0e29367d98 /tests/test_deserialize.rs | |
parent | 0f1e379af7d42f237ca0989a4445b9abf1de5d0a (diff) |
Expand out example and a bit of testing.
Diffstat (limited to 'tests/test_deserialize.rs')
-rw-r--r-- | tests/test_deserialize.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_deserialize.rs b/tests/test_deserialize.rs index c6d4673..1e83589 100644 --- a/tests/test_deserialize.rs +++ b/tests/test_deserialize.rs @@ -15,6 +15,7 @@ struct QueryParams { id: u8, name: String, address: Address, + phone: u32, user_ids: Vec<u8>, } @@ -67,6 +68,7 @@ fn deserialize_struct() { let params = QueryParams { id: 42, name: "Acme".to_string(), + phone: 12345, address: Address { city: "Carrot City".to_string(), postcode: "12345".to_string(), |