Can this work with `id: String`?
Hey!
I wanted to use ormx for quite some time, but never came around to porting existing "manual sqlx" code.
I sadly immediately bumped into the issue that the primary key (id = ...) cannot be of type String.
the trait bound `std::string::String: std::marker::Copy` is not satisfied
required by a bound in `ormx::Table::Id`
Is there a way around this issue or is this a limitation?
Of course String is Clone, but not Copy. Could this be changed or switched on with a feature flag?
I don't think there's a reason why it couldn't work with a Clone bound instead. I have always use surrogate/synthetic primary keys (which I consider good practice), so I haven't even noticed this limitation.
The Copy bound on Table::Id can just replaced with Clone.
Additionally, this line would need to be changed to emit self.#id_ident.clone(). Alternatively, the signature of Table::id() could be changed to return a reference.