Skip to main content

impl_batch_load

Macro impl_batch_load 

Source
macro_rules! impl_batch_load {
    ($entity:ty, $key_type:ty, $pk_field:ident) => { ... };
}
Expand description

Macro to implement BatchLoad for an entity with a primary key

§Example

impl_batch_load!(shelter::Entity, i32, id);
impl_batch_load!(animal::Entity, i64, id);