Macro rbatis::make_table_field_vec
source · [−]macro_rules! make_table_field_vec {
($vec_ref:expr,$field_name:ident) => { ... };
}
Expand description
take the target Vec member attribute Vec collection vec_ref: a reference to vec, field_name: the field name of the structure
need impl Clone or #[derive(Clone, Debug)]
for example:
struct SysUserRole{
pub role_id:String
}
let user_roles: Vec