LukeMathWalker / wiremock-rs

HTTP mocking to test Rust applications.
Apache License 2.0
631 stars 73 forks source link

Derive Clone for Request #20

Closed lilymara-onesignal closed 4 years ago

lilymara-onesignal commented 4 years ago

With the current API, it is not possible to save owned values of Request in a Match implementation, because Match is only given a reference to a Request, and Request does not implement Clone. If you wanted to store a list of Requests and iterate over them and make assertions on them after the fact, this would not be possible unless you could Clone owned values of Request from their references.

LukeMathWalker commented 4 years ago

Thanks for the PR!