pub trait IntoKey<I> {
    fn into_key<E>(&self) -> Result<I, E>
    where
        E: Error
; }
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

An implementation for vector of objects that implement the IntoKey trait. So you can have Foreign<Vec<MyType>> rather than Vec<Foreign<MyType>>

Implementors