xml: Implement proper NamespaceOwned type

This commit is contained in:
Lennart
2025-05-14 20:18:45 +02:00
parent 1436af1f9c
commit 212274fce9
8 changed files with 53 additions and 15 deletions

View File

@@ -1,3 +1,4 @@
use rustical_xml::NamespaceOwned;
use rustical_xml::XmlDeserialize;
use rustical_xml::XmlRootTag;
@@ -14,7 +15,7 @@ pub struct PropElement<PN: XmlDeserialize = Propname>(#[xml(ty = "untagged", fla
#[derive(Debug, Clone, XmlDeserialize, PartialEq)]
pub struct Propname {
#[xml(ty = "namespace")]
pub ns: Option<String>,
pub ns: Option<NamespaceOwned>,
#[xml(ty = "tag_name")]
pub name: String,
}