How to use Serde to parse a field that might fail to be deserialized without failing the entire deserialization?

前端 未结 1 1284
忘了有多久
忘了有多久 2021-01-22 00:37

I am deserializing some JSON objects which come in as requests. The input body is nested, but a certain field is sometimes misformatted for a variety of reasons. In that situati

1条回答
提交回复
热议问题