use proc_macro2::Ident;
use syn::Type;
use crate::common::meta::MetaInfo;
use crate::serialize::parser::extension::XmlExtension;
pub struct XmlNamespace;
impl XmlNamespace {
pub fn parse(field: Ident, _: Type, _: Option<&MetaInfo>, meta: Option<&MetaInfo>, _: XmlExtension) -> Option<Ident> {
meta.and_then(|meta| {
if meta.contains("xmlns") {
Some(field)
} else {
None
}
})
}
}