use super::macros::intermediate; use super::registry::Registry; use super::IElement; use crate::error::CustomError; #[derive(Debug, Clone)] pub(crate) struct ISection { pub(crate) children: Vec, } intermediate!(ISection, Section, |registry, original| async { let children = { let mut ret = Vec::new(); for elem in original.children.iter() { ret.push(IElement::new(registry, elem).await?); } ret }; Ok(ISection { children }) });