pub struct XmlField { /* private fields */ }Expand description
An Arrow field with a relative XML path.
Implementations§
Source§impl XmlField
impl XmlField
Sourcepub fn new(
name: impl Into<String>,
path: impl Into<String>,
data_type: DataType,
nullable: bool,
) -> Self
pub fn new( name: impl Into<String>, path: impl Into<String>, data_type: DataType, nullable: bool, ) -> Self
Maps a scalar column to a relative path, such as ., @id, or author/name.
Sourcepub fn structure(
name: impl Into<String>,
path: impl Into<String>,
nullable: bool,
children: Vec<XmlField>,
) -> Self
pub fn structure( name: impl Into<String>, path: impl Into<String>, nullable: bool, children: Vec<XmlField>, ) -> Self
Maps a struct with child paths relative to its element.
Sourcepub fn list(
name: impl Into<String>,
path: impl Into<String>,
nullable: bool,
item: XmlField,
) -> Self
pub fn list( name: impl Into<String>, path: impl Into<String>, nullable: bool, item: XmlField, ) -> Self
Maps a list container; the item path selects repeated values inside it.
Empty containers become []; missing or nil nullable containers become null.
Sourcepub fn arrow_field(&self) -> &Field
pub fn arrow_field(&self) -> &Field
Arrow field definition.
Trait Implementations§
Auto Trait Implementations§
impl Forget for XmlField
impl Freeze for XmlField
impl RefUnwindSafe for XmlField
impl Send for XmlField
impl Sync for XmlField
impl Unpin for XmlField
impl UnsafeUnpin for XmlField
impl UnwindSafe for XmlField
Blanket Implementations§
impl<T> Allocation for T
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