pub struct TableConfig {
pub name: String,
pub xml_path: String,
pub levels: Vec<String>,
pub fields: Vec<FieldConfig>,
}Expand description
Configuration for an XML table to be parsed into an Arrow record batch.
This struct defines how an XML structure should be interpreted as a table, including the path to the table elements, the element representing a row, and the configuration of the fields (columns) within the table.
Fields§
§name: StringThe name of the table.
xml_path: StringThe XML path to the table elements. For example /data/dataset/table.
levels: Vec<String>The levels of nesting for this table. This is used to create the indices for nested tables.
For example if the xml_path is /data/dataset/table/item/properties the levels should
be ["table", "properties"].
fields: Vec<FieldConfig>A vector of FieldConfig structs, each defining a field (column) in the table.
Implementations§
Trait Implementations§
Source§impl Clone for TableConfig
impl Clone for TableConfig
Source§fn clone(&self) -> TableConfig
fn clone(&self) -> TableConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TableConfig
impl Debug for TableConfig
Source§impl<'de> Deserialize<'de> for TableConfig
impl<'de> Deserialize<'de> for TableConfig
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 PartialEq for TableConfig
impl PartialEq for TableConfig
Source§impl Serialize for TableConfig
impl Serialize for TableConfig
impl StructuralPartialEq for TableConfig
Auto Trait Implementations§
impl Freeze for TableConfig
impl RefUnwindSafe for TableConfig
impl Send for TableConfig
impl Sync for TableConfig
impl Unpin for TableConfig
impl UnsafeUnpin for TableConfig
impl UnwindSafe for TableConfig
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