Expand description
Any type use inside a ForeignKey must implement this trait. It allows you
to transform the I
type into an ID when I
is serialized.
Required Methods
Implementations on Foreign Types
sourceimpl<V, K> IntoKey<K> for Vec<V>where
V: IntoKey<K>,
K: FromIterator<K>,
impl<V, K> IntoKey<K> for Vec<V>where
V: IntoKey<K>,
K: FromIterator<K>,
An implementation for vector of objects that implement the IntoKey
trait. So you can have Foreign<Vec<MyType>>
rather than Vec<Foreign<MyType>>