Closed Goncalerta closed 3 years ago
Thanks a lot for posting the issue, I think it's clear and easy to understand. With #231 , I believe these cases can be circumvented. Even though this crate will try its best to provide preset types for return values of the google APIs, there may always be cases where those won't match reality. In #231, the caller is able to provide their own structures with exactly the type they expect. I think a first version of said PR is going to land in an update soon(ish), which should help you solve this issue.
Maybe you could try with the latest version of the crates now available with async support in v2.0 or the next generation of API generators.
As this repository is now in maintenance mode, this issue is probably not going to be fixed unless it is contributed.
Given spreadsheet with the number 5 on cell A1, the following request:
panics with:
This happens because, with the
UNFORMATTED_VALUE
render option, the API will return numbers instead of strings as the cell value, however,google_sheets4::ValueRange
only accepts Strings as cell values.