Closed ytanay closed 5 months ago
In our use case, we deserialize GCP structs using a file reader (instead from an in-memory string), which yields errors such as this:
Caused by: invalid type: string "...", expected a borrowed string at line ... column ...
The first commit demonstrates this behavior, and the second fixes it by allowing serde to choose between a borrowed and owned string using a Cow.
serde
Cow
In our use case, we deserialize GCP structs using a file reader (instead from an in-memory string), which yields errors such as this:
The first commit demonstrates this behavior, and the second fixes it by allowing
serde
to choose between a borrowed and owned string using aCow
.