pub enum FieldKind {
Check,
Choice {
options: Vec<String>,
multiple: bool,
other: bool,
},
Text {
lines: u32,
},
Number {
unit: String,
nominal: Option<f64>,
min: Option<f64>,
max: Option<f64>,
decimals: Option<u8>,
required_in_limits: bool,
},
Serial,
}Expand description
What a field records.
Variants§
Check
One box to tick.
Choice
One of options (a dropdown; on paper, a box per option).
Fields
Text
Written text: one line, or a box of lines lines.
Number
A measurement, with its unit and limits.
Fields
Serial
A serial number not tied to a part (the build’s own, a gauge’s).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FieldKind
impl<'de> Deserialize<'de> for FieldKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Forget for FieldKind
impl Freeze for FieldKind
impl Move for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKind
impl UnwindSafe for FieldKind
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