pub trait Identity {
    fn columns() -> Vec<String>;
    fn set_column(&mut self, column: &str, value: &SqlArg) -> Result<()>;
}
Expand description

Trait to provide the entity type for a key. This is only used for ergonomics of the api.

Required Methods

Returns primary key columns for a given entity.

Sets the value for an identity column

Implementors