-
Notifications
You must be signed in to change notification settings - Fork 438
Closed
Labels
enhancementImprovement of existing features or bugfixImprovement of existing features or bugfixk::apiRelated to API (application interface)Related to API (application interface)
Milestone
Description
For me I need to persist HTTP GraphQL requests and response which is why I need Serialize and Deserialize and then I need to pass them around cloning them.
In order to do so for GraphQLRequest every field is already Serializeable and a simple #[derive(Serialize)], it derives the other traits.
For GraphQLResponse in order to do Deserialize, a custom Deserialize implementation would have to be done. On top of that Clone seems impossible with the GraphQLResponse having borrowed content in the form of a lexer Token<'a> from a parse error.
Changing Token to owning the Name variant would make it possible to clone the response around.
Thats all. It should be relatively simple to implement.
werner
Metadata
Metadata
Assignees
Labels
enhancementImprovement of existing features or bugfixImprovement of existing features or bugfixk::apiRelated to API (application interface)Related to API (application interface)