pub struct FieldDef {
pub name: String,
pub type_info: TypeInfo,
pub optional: bool,
pub serde_attrs: SerdeAttributes,
}Expand description
Field definition in a struct
Fields§
§name: StringField name
type_info: TypeInfoType information for the field
optional: boolWhether the field is optional (wrapped in Option<T>)
serde_attrs: SerdeAttributesSerde attributes applied to this field
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 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