pub enum DataType {
Simple {
type_name: String,
},
Decimal {
precision: u32,
scale: u32,
},
Array {
element_type: Box<DataType>,
},
Map {
key_type: Box<DataType>,
value_type: Box<DataType>,
},
Struct(StructType),
}Expand description
Data type for a schema field.
Variants§
Simple
Simple types like string, int, long, double, etc.
Decimal
Decimal type with precision and scale.
Array
Array type with element type.
Map
Map type with key and value types.
Struct(StructType)
Struct type containing fields.
Implementations§
Trait Implementations§
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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