Macro rbatis::impl_field_name_method[][src]

macro_rules! impl_field_name_method {
    ($target : ty { $($field_name : ident $(,) ?) + }) => { ... };
}
Expand description
will crate pub fn field_name()->&str method

for example: #crud_table #[derive(Clone, Debug)] pub struct BizActivity { pub id: Option, pub name: Option, pub delete_flag: Option, } impl_field_name_method!(BizActivity{id,name,delete_flag});

println!(“{}”,BizActivity::delete_flag());