jpopesculian / twitter-v2-rs

Rust bindings for Twitter API v2
https://docs.rs/twitter-v2/latest
102 stars 28 forks source link

Deserialization for `Media` fails if the JSON has no `duration_ms` field #2

Closed wingertge closed 2 years ago

wingertge commented 2 years ago

This is probably because of the custom deserializer on duration but I can't figure why it's behaving that way.

jpopesculian commented 2 years ago

Hi @wingertge newest release should fix your issues https://github.com/jpopesculian/twitter-v2-rs/commit/81204bc27e6e07d44d4cf7851bbd2d8b107a97a3