pub struct AttributeExtractor { /* private fields */ }
Expand description
Comprehensive attribute extractor with namespace awareness
Implementations§
Source§impl AttributeExtractor
impl AttributeExtractor
Sourcepub fn extract_attributes(
&self,
element: &BytesStart<'_>,
namespace_context: &NamespaceContext,
) -> Result<AttributeExtractionResult, ParseError>
pub fn extract_attributes( &self, element: &BytesStart<'_>, namespace_context: &NamespaceContext, ) -> Result<AttributeExtractionResult, ParseError>
Extract all attributes from an XML element
Sourcepub fn apply_inheritance(
&self,
parent_attributes: &AttributeMap,
child_attributes: &mut AttributeMap,
)
pub fn apply_inheritance( &self, parent_attributes: &AttributeMap, child_attributes: &mut AttributeMap, )
Apply attribute inheritance from parent to child
Sourcepub fn validate_attributes(&self, attributes: &AttributeMap) -> Vec<String>
pub fn validate_attributes(&self, attributes: &AttributeMap) -> Vec<String>
Validate extracted attributes
Trait Implementations§
Source§impl Clone for AttributeExtractor
impl Clone for AttributeExtractor
Source§fn clone(&self) -> AttributeExtractor
fn clone(&self) -> AttributeExtractor
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 AttributeExtractor
impl Debug for AttributeExtractor
Auto Trait Implementations§
impl Freeze for AttributeExtractor
impl RefUnwindSafe for AttributeExtractor
impl Send for AttributeExtractor
impl Sync for AttributeExtractor
impl Unpin for AttributeExtractor
impl UnwindSafe for AttributeExtractor
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