Closed innerand closed 5 years ago
Should fix issue https://github.com/QuietMisdreavus/twitter-rs/issues/51
Thanks a lot, just ran into the same problem!
I think the fix is not correct, if the exanded_url is null then I want to know about it as a consumer. That would mean we should implement this as Option.
Opened #56 as alternative to this pull request.
I would tend to agree that if a field is nullable it should be represented as an option. There are a few instances of just using a default if a field is missing but I think this should only happen when it is an extremely rare occurrence for it to be null and the ergonomic hit is just too annoying. I don't think this is one of those cases so going to close in favour of #56
The extended URL of a URL entity may be null.