pub struct ArrowJsonField {
pub name: String,
pub field_type: Value,
pub nullable: bool,
pub children: Vec<ArrowJsonField>,
pub dictionary: Option<ArrowJsonFieldDictionary>,
pub metadata: Option<Value>,
}
Expand description
Fields are left as JSON Value
as they vary by DataType
Fields§
§name: String
The name of the field
field_type: Value
The data type of the field, can be any valid JSON value
nullable: bool
Whether the field is nullable
children: Vec<ArrowJsonField>
The children fields
dictionary: Option<ArrowJsonFieldDictionary>
The dictionary for the field
metadata: Option<Value>
The metadata for the field, if any
Implementations§
Source§impl ArrowJsonField
impl ArrowJsonField
Sourcepub(crate) fn equals_field(&self, field: &Field) -> bool
pub(crate) fn equals_field(&self, field: &Field) -> bool
Compare the Arrow JSON field with the Arrow Field
Sourcepub(crate) fn to_arrow_field(&self) -> Result<Field>
pub(crate) fn to_arrow_field(&self) -> Result<Field>
Convert to an Arrow Field TODO: convert to use an Into
Trait Implementations§
Source§impl Debug for ArrowJsonField
impl Debug for ArrowJsonField
Source§impl<'de> Deserialize<'de> for ArrowJsonField
impl<'de> Deserialize<'de> for ArrowJsonField
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
Source§impl From<&Arc<Field>> for ArrowJsonField
impl From<&Arc<Field>> for ArrowJsonField
Source§impl From<&Field> for ArrowJsonField
impl From<&Field> for ArrowJsonField
Auto Trait Implementations§
impl Freeze for ArrowJsonField
impl RefUnwindSafe for ArrowJsonField
impl Send for ArrowJsonField
impl Sync for ArrowJsonField
impl Unpin for ArrowJsonField
impl UnwindSafe for ArrowJsonField
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