Skip to main content

ToNetconfXml

Trait ToNetconfXml 

Source
pub trait ToNetconfXml: WriteXmlFields {
    // Required methods
    fn namespace(&self) -> &str;
    fn root_element(&self) -> &str;
    fn to_xml(&self) -> Result<String, XmlError>;
}
Expand description

Trait for types that can be serialized to NETCONF XML.

Implemented by the code generator for each YANG container/list.

Required Methods§

Source

fn namespace(&self) -> &str

The YANG module namespace URI.

Source

fn root_element(&self) -> &str

The root element name.

Source

fn to_xml(&self) -> Result<String, XmlError>

Serialize this value to NETCONF-compatible XML.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§