pub enum FieldType {
Optional(Box<FieldType>),
List(Box<FieldType>),
Map {
key: Box<FieldType>,
value: Box<FieldType>,
},
Named(TypeRef),
Primitive(Primitive),
}
Expand description
The type of a field.
Variants§
Optional(Box<FieldType>)
A Option<T>
field
List(Box<FieldType>)
a Vec<T>
field
Map
a HashMap<K, V>
field
Fields
Named(TypeRef)
A field with a named type
Primitive(Primitive)
A field with a primitive type
Trait Implementations§
impl Eq for FieldType
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 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