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 Forget for FieldDecl
impl Freeze for FieldDeclwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const FieldType is !null: Freeze,
PhantomData<FieldType>: Freeze,
PhantomData<FieldConstraintDecl>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const Expression is !null: Freeze,
PhantomData<Expression>: Freeze,
impl Move for FieldDecl
impl RefUnwindSafe for FieldDecl
impl Send for FieldDecl
impl Sync for FieldDecl
impl Unpin for FieldDecl
impl UnsafeUnpin for FieldDeclwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const FieldType is !null: UnsafeUnpin,
PhantomData<FieldType>: UnsafeUnpin,
PhantomData<FieldConstraintDecl>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const Expression is !null: UnsafeUnpin,
PhantomData<Expression>: UnsafeUnpin,
impl UnwindSafe for FieldDeclwhere
RawVecInner: UnwindSafe,
BoxRaw<FieldType>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BoxRaw<Expression>: UnwindSafe,
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