pub enum FieldType {
String,
Number,
Integer,
Boolean,
Array(Box<FieldType>),
Object(Box<Schema>),
Any,
}Expand description
The kinds of value a field may hold.
Variants§
String
Number
Any JSON number.
Integer
A number with no fractional part — checked, not just declared.
Boolean
Array(Box<FieldType>)
Object(Box<Schema>)
A nested object with its own fields.
Any
Anything at all, for a tool that genuinely takes free-form JSON.
Trait Implementations§
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnsafeUnpin for FieldType
impl UnwindSafe for FieldType
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