Derive Debug for more types

This commit is contained in:
Dirkjan Ochtman 2022-09-04 22:18:55 +02:00
parent 7fa6340f8e
commit 611db8335e
1 changed files with 4 additions and 3 deletions

View File

@ -85,7 +85,7 @@ pub fn from_xml(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
))
}
#[derive(Default)]
#[derive(Debug, Default)]
struct ContainerMeta {
ns: NamespaceMeta,
}
@ -105,7 +105,7 @@ impl ContainerMeta {
}
}
#[derive(Default)]
#[derive(Debug, Default)]
struct FieldMeta {
attribute: bool,
ns: NamespaceMeta,
@ -127,7 +127,7 @@ impl FieldMeta {
}
}
#[derive(Default)]
#[derive(Debug, Default)]
struct NamespaceMeta {
default: Namespace,
prefixes: HashMap<String, String>,
@ -181,6 +181,7 @@ fn meta_items(attrs: &[syn::Attribute]) -> impl Iterator<Item = Meta> + '_ {
})
}
#[derive(Debug)]
enum Namespace {
Default,
Prefix(String),