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 #[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] MockTable{ }
//step2: make struct let activity = rbatis::make_table!(MockTable{ id : “12312”.to_string(), delete_flag : 1, name: None, });