pub struct FieldDef {
pub name: String,
pub field_type: FieldType,
pub default_value: Option<FactValue>,
pub required: bool,
}Expand description
Field definition in a template
Fields§
§name: String§field_type: FieldType§default_value: Option<FactValue>§required: boolTrait 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 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