Macro rbatis::make_table
source · [−]macro_rules! make_table {
($t:path{ $($key:ident:$value:expr$(,)?)+ }) => { ... };
}
Expand description
Simplifies table construction by relying on the Default trait
step1: impl Default #crud_table #[derive(Clone, Debug, Default)] BizActivity{ }
//step2: make struct let activity = rbatis::make_table!(BizActivity{ id : “12312”.to_string(), delete_flag : 1, name: None, });