pub trait XmlRead<'i> {
// Required methods
fn next(&mut self) -> Result<PayloadEvent<'i>, DeError>;
fn read_to_end(&mut self, name: QName<'_>) -> Result<(), DeError>;
fn decoder(&self) -> Decoder;
fn has_nil_attr(&self, start: &BytesStart<'_>) -> bool;
}
Available on crate feature
serialize
only.Expand description
Required Methods§
Sourcefn next(&mut self) -> Result<PayloadEvent<'i>, DeError>
fn next(&mut self) -> Result<PayloadEvent<'i>, DeError>
Return an input-borrowing event.
Sourcefn read_to_end(&mut self, name: QName<'_>) -> Result<(), DeError>
fn read_to_end(&mut self, name: QName<'_>) -> Result<(), DeError>
Skips until end element is found. Unlike next()
it will not allocate
when it cannot satisfy the lifetime.
Sourcefn has_nil_attr(&self, start: &BytesStart<'_>) -> bool
fn has_nil_attr(&self, start: &BytesStart<'_>) -> bool
Checks if the start
tag has a xsi:nil
attribute. This method ignores
any errors in attributes.