use super::macros::intermediate; use super::IElement; use crate::error::CustomError; #[derive(Debug, Clone)] pub(crate) struct ISection { pub(crate) children: Vec, } intermediate!( ISection, &'orig organic::types::Section<'parse>, original, registry, { let children = { let mut ret = Vec::new(); for elem in original.children.iter() { ret.push(IElement::new(registry.clone(), elem).await?); } ret }; Ok(ISection { children }) } );