Macro rbatis::make_table [−][src]
macro_rules! make_table {
($t : ty { $($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, });