You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Take the following code as an example:
`
struct TestData{
pub cmd_type: u16
}
`
It turns out that the database has already named this field type. If the field name is changed to type, it will conflict with the keyword. I want to map cmd_type to the type field. Is there a corresponding macro definition?
Is there any definition to declare the field as an auto-increasing primary key?
Issues-translate-bot
changed the title
请问是否有宏来修改sturct中字段的名称?
Is there a macro to modify the name of the field in sturct?
Nov 15, 2023
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Take the following code as an example: ` struct TestData{ pub cmd_type: u16 }
` It turns out that the database has named this field type. If the field name is changed to type, it will conflict with the keyword. I want to map cmd_type to the type field. Is there a corresponding macro definition? Is there any definition to declare the field as an auto-increasing primary key?
以下面的代码为例:
`
struct TestData{
pub cmd_type: u16
}
`
原来数据库已经把这个字段命名为type了,如果字段名改为type就与关键字冲突了,我想把cmd_type对应上type字段,请问有对应的宏定义吗?
另有没有定义来申明字段为自增长主键?
The text was updated successfully, but these errors were encountered: