pub struct FieldDef {
pub name: Spanned<String>,
pub type_: Spanned<SchemaType>,
pub default: Option<Spanned<RonValue>>,
}Expand description
A single field definition within a struct.
Fields§
§name: Spanned<String>The field name with source location.
type_: Spanned<SchemaType>The expected type for this field’s value, with source location.
default: Option<Spanned<RonValue>>An optional default value. Fields with defaults are not required in data.
Trait Implementations§
impl StructuralPartialEq for FieldDef
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