pub enum XmlMode {
Rows,
Descendants,
Attributes,
}Expand description
Controls how XML input files are parsed into rows.
Variants§
Rows
Detect and extract tabular rows from the XML structure (default).
Looks first for direct <row> children, then for any element whose direct
children are all leaf elements (no deeper nesting).
Descendants
Collect every leaf text element in the document as a separate row.
Each row has two columns: tag (element name) and value (text content).
Attributes
Extract XML element attributes as columns.
Every element that carries at least one XML attribute becomes a row; attribute
names map to column names. Text content of the element is also included as a
value column when present.
Trait Implementations§
impl Copy for XmlMode
impl Eq for XmlMode
impl StructuralPartialEq for XmlMode
Auto Trait Implementations§
impl Freeze for XmlMode
impl RefUnwindSafe for XmlMode
impl Send for XmlMode
impl Sync for XmlMode
impl Unpin for XmlMode
impl UnsafeUnpin for XmlMode
impl UnwindSafe for XmlMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.