Skip to main content

impl_builder_insertable

Macro impl_builder_insertable 

Source
macro_rules! impl_builder_insertable {
    ($struct_name:ident) => { ... };
}
Expand description

Macro to automatically implement Insertable trait for a struct

This provides the same convenience as the macro approach for insert operations.

ยงExample

use ignis_db::builders::*;

struct User {
    id: i32,
    email: String,
}

impl_builder_insertable!(User);

// Now User implements Insertable automatically