pub struct ArrowJsonSchema {
pub fields: Vec<ArrowJsonField>,
pub metadata: Option<Vec<HashMap<String, String>>>,
}
Expand description
A struct that partially reads the Arrow JSON schema.
Fields are left as JSON Value
as they vary by DataType
Fields§
§fields: Vec<ArrowJsonField>
An array of JSON fields
metadata: Option<Vec<HashMap<String, String>>>
An array of metadata key-value pairs
Implementations§
Source§impl ArrowJsonSchema
impl ArrowJsonSchema
Sourcepub(crate) fn equals_schema(&self, schema: &Schema) -> bool
pub(crate) fn equals_schema(&self, schema: &Schema) -> bool
Compare the Arrow JSON schema with the Arrow Schema
pub(crate) fn to_arrow_schema(&self) -> Result<Schema>
Trait Implementations§
Source§impl Debug for ArrowJsonSchema
impl Debug for ArrowJsonSchema
Source§impl<'de> Deserialize<'de> for ArrowJsonSchema
impl<'de> Deserialize<'de> for ArrowJsonSchema
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
Auto Trait Implementations§
impl Freeze for ArrowJsonSchema
impl RefUnwindSafe for ArrowJsonSchema
impl Send for ArrowJsonSchema
impl Sync for ArrowJsonSchema
impl Unpin for ArrowJsonSchema
impl UnwindSafe for ArrowJsonSchema
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