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§
Sourcefn root_element(&self) -> &str
fn root_element(&self) -> &str
The root element name.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".