Derive a Clone implementation for tokio_postgres::Row.
Use case
I want to clone the row. I can't see why I shouldn't be able to, the actual data is stored in bytes::Bytes, which is made to be cloned, and the Statement (including columns, etc) is behind an Arc, which is exactly the same as bytes::Bytes.
Workarounds
I could place the row in an Arc, but that would be pretty silly since underneath it would be two Arcs stored inside another Arc.
Feature
Derive a
Clone
implementation fortokio_postgres::Row
.Use case
I want to clone the row. I can't see why I shouldn't be able to, the actual data is stored in
bytes::Bytes
, which is made to be cloned, and theStatement
(including columns, etc) is behind anArc
, which is exactly the same asbytes::Bytes
.Workarounds
I could place the row in an
Arc
, but that would be pretty silly since underneath it would be twoArc
s stored inside anotherArc
.