unsplash / mercury

The guide of souls to the underworld.
https://unsplash.github.io/mercury/
MIT License
3 stars 0 forks source link

`APIResult` shouldn't be untagged #1

Open samhh opened 1 year ago

samhh commented 1 year ago

We should be able to use ok: bool as a tag: https://github.com/unsplash/mercury/blob/4b0b337d92fe435428e2c7bcd1504c4ede6acd28/src/slack/api.rs#L42

This is why the custom only_true and only_false deserialisers exist.

Blocked by: https://github.com/serde-rs/serde/issues/745#issuecomment-294314786