-
Notifications
You must be signed in to change notification settings - Fork 342
Cosmos: Review SDK Response types #4064
Copy link
Copy link
Open
Labels
CosmosThe azure_cosmos crateThe azure_cosmos crate
Description
I want to do one more pass over the SDK response types (ItemResponse, ResourceResponse, etc.) before locking those APIs. The main thing I want to consider is creating a type representing everything except the body for a given response. Because the body is stored as bytes but users want it as their model type T, we consume the response in into_model() (to avoid copying the bytes). It would be good if there was a way to "split" the response into "headers" and "body" and then only consume the body to deserialize.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
CosmosThe azure_cosmos crateThe azure_cosmos crate
Type
Projects
Status
Todo