pub struct XmlSchema { /* private fields */ }Expand description
Validated column mappings and namespace bindings.
Implementations§
Source§impl XmlSchema
impl XmlSchema
Sourcepub fn new(fields: Vec<XmlField>) -> Result<Self>
pub fn new(fields: Vec<XmlField>) -> Result<Self>
Validates column mappings. An empty schema counts rows.
Sourcepub fn with_namespaces(
fields: Vec<XmlField>,
bindings: &[NamespaceBinding<'_>],
) -> Result<Self>
pub fn with_namespaces( fields: Vec<XmlField>, bindings: &[NamespaceBinding<'_>], ) -> Result<Self>
Binds path prefixes to namespace URIs; input prefixes may differ.
xml is predefined; xml and xmlns cannot be rebound.
Sourcepub fn arrow_schema(&self) -> SchemaRef
pub fn arrow_schema(&self) -> SchemaRef
Arrow output schema.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XmlSchema
impl RefUnwindSafe for XmlSchema
impl Send for XmlSchema
impl Sync for XmlSchema
impl Unpin for XmlSchema
impl UnsafeUnpin for XmlSchema
impl UnwindSafe for XmlSchema
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