diff options
Diffstat (limited to 'src/element.rs')
-rw-r--r-- | src/element.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/element.rs b/src/element.rs index 0e0b8f1..e93a0f3 100644 --- a/src/element.rs +++ b/src/element.rs @@ -9,19 +9,20 @@ use crate::{ // when are namespaces names chosen then if they are automatically calculated // namespaces are held by readers and writers. -#[derive(PartialEq, Eq, Hash, Clone)] +#[derive(PartialEq, Eq, Hash, Clone, Debug)] pub struct Namespace { pub prefix: Option<String>, pub namespace: String, } // names are qualified, they contain a reference to the namespace (held within the reader/writer) -#[derive(PartialEq, Eq, Hash, Clone)] +#[derive(PartialEq, Eq, Hash, Clone, Debug)] pub struct Name { pub namespace: Namespace, pub name: String, } +#[derive(Debug)] pub enum Content { Element(Element), Text(String), @@ -30,6 +31,7 @@ pub enum Content { } // should this be a trait? +#[derive(Debug)] pub struct Element { pub name: Name, // namespace: Name, |