Skip to content

Can this work with id: String? #43

@timephy

Description

@timephy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions