From 140af50536ebc32ae6461852daa2df0fc2d197ca Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sun, 10 Nov 2024 17:57:05 +0000 Subject: implement reader testing --- src/element.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/element.rs') 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, 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, -- cgit