error[E0119]: conflicting implementations of trait `std::convert::From<domain::player::DomainPlayer>` for type `entities::player::ActiveModel`
|
133 | impl From<DomainPlayer> for player::ActiveModel {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: conflicting implementation in crate `generated`:
- impl From<<entities::prelude::Player as EntityTrait>::Model> for entities::player::ActiveModel;
For more information about this error, try `rustc --explain E0119`.
Let's say I have this code generated with
sea-orm-cli
:and this manual struct:
If I try to write this:
I get this error:
Why?