You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<PascalBach-M> I'm trying to deserialize a JSON respons from a REST call. I had some success with it using serde. Now I was wondering if I could improve the error handling by directly deserializing the response to a Result type. <PascalBach-M> What I mean is that the response can be either a QueryResult or a QueryError which is dindicated by a bool `error: true` or `error:false` in the JSON response. Now I was wondering if it is possible to directly serialize this to a Result<QueryResult, QueryError>?
The text was updated successfully, but these errors were encountered:
From IRC:
The text was updated successfully, but these errors were encountered: