pub struct Node { /* private fields */ }Expand description
An introspection tree node (typically the root of the XML document).
Implementations§
source§impl Node
impl Node
sourcepub fn from_reader<R: Read>(reader: R) -> Result<Node, Error>
pub fn from_reader<R: Read>(reader: R) -> Result<Node, Error>
Parse the introspection XML document from reader.
sourcepub fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>
pub fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>
Write the XML document to writer.
sourcepub fn interfaces(&self) -> Vec<&Interface>
pub fn interfaces(&self) -> Vec<&Interface>
Returns the interfaces on this node.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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>,
Deserialize this value from the given Serde deserializer. Read more