Hugo Duncan
a935ebe8b9
Adds serializer format specific field names
...
Allows different field names to be used for different external formats.
Field names are specified using the `rename` field attribute, e.g:
#[serde(rename(xml= "a4", json="a5"))]
Reverts #62
Addresses #61
2015-05-08 12:43:11 -04:00
Oliver Schneider
1748831152
missing field errors displayed original field name instead of renamed
...
closes #63
2015-04-23 17:28:42 +02:00
Oliver Schneider
c37f67b0a1
separate out the line/column counting from character iteration
2015-04-16 16:31:56 +02:00
Erick Tryzelaar
7622255d6f
Remove the std_misc
feature flag
2015-04-12 10:43:29 -07:00
Erick Tryzelaar
e0eff942b1
Add Error::unknown_field_error
2015-04-12 10:32:54 -07:00
Erick Tryzelaar
d0b49d9b89
Finish updating to rust HEAD
2015-04-02 19:13:25 -07:00
Erick Tryzelaar
bfe7a04c4d
Update the location of json errors coming from "Deserialize"
2015-03-30 19:50:41 -07:00
Erick Tryzelaar
09de237033
Allow Vecs, BTreeMaps, and HashMaps to be deserialized from a unit
...
Closes #36
2015-03-20 08:47:33 -07:00
Erick Tryzelaar
5378d22708
Switch to the new custom_deserialize syntax
2015-03-19 20:19:49 -07:00
Erick Tryzelaar
8821421357
Docs, json::Value::U64, and bring many of the rust-serialize fns to Value
2015-03-18 20:51:48 -07:00
Erick Tryzelaar
eb4af09456
Simplify the variant deserializer visitor
2015-03-18 07:35:05 -07:00
Erick Tryzelaar
78137ee3a4
Rewrite enum deserialization to not require allocations
2015-03-16 22:42:04 -07:00
Erick Tryzelaar
b40d8f7bac
Remove the first
argument from visit_{seq,map}_elt
2015-03-16 22:30:02 -07:00
Erick Tryzelaar
a6ba251ef9
Enable a missing field test
2015-03-16 21:23:20 -07:00
Erick Tryzelaar
dc87288f48
Allow json missing fields to be treated as a null
...
Closes #34 .
2015-03-12 20:44:16 -07:00
Erick Tryzelaar
805a3435cf
Replace serde1 with serde2!
...
Closes #26 !
2015-03-08 22:56:33 -07:00