pub struct FieldDecl {
pub is_key: bool,
pub name: String,
pub field_type: FieldType,
pub is_optional: bool,
pub constraints: Vec<FieldConstraintDecl>,
pub default: Option<Expression>,
}Expand description
One field of a record or typed entity body.
Fields§
§is_key: bool§name: String§field_type: FieldType§is_optional: bool§constraints: Vec<FieldConstraintDecl>§default: Option<Expression>Authored default <literal> value, type-checked during application
validation. Stored as an Expression for round-trip parity, though
only the literal grammar branch is accepted.
Trait Implementations§
impl StructuralPartialEq for FieldDecl
Auto Trait Implementations§
impl Freeze for FieldDecl
impl RefUnwindSafe for FieldDecl
impl Send for FieldDecl
impl Sync for FieldDecl
impl Unpin for FieldDecl
impl UnsafeUnpin for FieldDecl
impl UnwindSafe for FieldDecl
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