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>,
}Fields§
§field_type: String§required: bool§default: Option<Value>§read: Option<Vec<String>>§write: Option<Vec<String>>§fields: Option<Value>嵌套 object 字段的原始定义(未规范化,与 JS 保持一致)
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