pub struct FieldDef {
pub field_type: String,
pub required: bool,
pub default: Option<Value>,
pub read: Option<Vec<String>>,
pub write: Option<Vec<String>>,
pub fields: Option<Value>,
pub strategy: Option<String>,
}Fields§
§field_type: String§required: bool§default: Option<Value>§read: Option<Vec<String>>§write: Option<Vec<String>>§fields: Option<Value>嵌套 object 字段的原始定义(未规范化,与 JS 保持一致)
strategy: Option<String>ID 供给策略(阶段2):仅 _id 字段有意义 —— "autoincrement" = 数据库自增列
赋值(SQL 后端),宿主不生成、core 不注入 _id;Mongo 后端无自增语义,
执行器对此显式报错(AUTOINCREMENT_NOT_SUPPORTED)。其余值非法(注册期校验)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldDef
impl RefUnwindSafe for FieldDef
impl Send for FieldDef
impl Sync for FieldDef
impl Unpin for FieldDef
impl UnsafeUnpin for FieldDef
impl UnwindSafe for FieldDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more