adding a fake value into a ForeignKey<T> looks doable, but requires T: Clone in order for the fake T to be stored in the db
why adding fake values into a Many<T> looks to be incompatible with how Many is designed
I think it is worthwhile to generate a fake value for ForeignKey<T> , if only because faking with Self::new_raw() is really bad, because it exposes an invalid state that can not otherwise easily be reached.
This is a demo of
ForeignKey<T>
looks doable, but requiresT: Clone
in order for the fakeT
to be stored in the dbMany<T>
looks to be incompatible with howMany
is designedI think it is worthwhile to generate a fake value for
ForeignKey<T>
, if only because faking withSelf::new_raw()
is really bad, because it exposes an invalid state that can not otherwise easily be reached.