pub enum XmlChild {
Text(XmlText),
CData(XmlCData),
Element(XmlElement),
PI(XmlProcessingInstruction),
Comment(XmlComment),
None,
}
Expand description
An XML child node.
Variants§
Text(XmlText)
A text node.
CData(XmlCData)
A CDATA node.
Element(XmlElement)
An element node.
PI(XmlProcessingInstruction)
A processing instruction node.
Comment(XmlComment)
A comment node.
None
Nothing.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for XmlChild
impl<'de> Deserialize<'de> for XmlChild
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserializes a value from a deserializer.
Source§fn deserialize_seq<D: Deserializer<'de>>(reader: D) -> Result<Self, D::Error>
fn deserialize_seq<D: Deserializer<'de>>(reader: D) -> Result<Self, D::Error>
Deserializes a value from a deserializer, but tries to do it from a sequence of values.
Source§impl<'de> Deserializer<'de> for &'de XmlChild
impl<'de> Deserializer<'de> for &'de XmlChild
Source§impl From<XmlComment> for XmlChild
impl From<XmlComment> for XmlChild
Source§fn from(value: XmlComment) -> Self
fn from(value: XmlComment) -> Self
Converts to this type from the input type.
Source§impl From<XmlElement> for XmlChild
impl From<XmlElement> for XmlChild
Source§fn from(value: XmlElement) -> Self
fn from(value: XmlElement) -> Self
Converts to this type from the input type.
Source§impl From<XmlProcessingInstruction> for XmlChild
impl From<XmlProcessingInstruction> for XmlChild
Source§fn from(value: XmlProcessingInstruction) -> Self
fn from(value: XmlProcessingInstruction) -> Self
Converts to this type from the input type.
Source§impl Ord for XmlChild
impl Ord for XmlChild
Source§impl PartialOrd for XmlChild
impl PartialOrd for XmlChild
impl Eq for XmlChild
impl StructuralPartialEq for XmlChild
Auto Trait Implementations§
impl Freeze for XmlChild
impl RefUnwindSafe for XmlChild
impl Send for XmlChild
impl Sync for XmlChild
impl Unpin for XmlChild
impl UnwindSafe for XmlChild
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