use crate::error::CustomError; use super::registry::Registry; use super::IElement; #[derive(Debug, Clone)] pub(crate) struct IQuoteBlock { pub(crate) children: Vec, } impl IQuoteBlock { pub(crate) async fn new<'b, 'parse>( registry: &'b mut Registry<'parse>, original: &'b organic::types::QuoteBlock<'parse>, ) -> Result { let children = { let mut ret = Vec::new(); for obj in original.children.iter() { ret.push(IElement::new(registry, obj).await?); } ret }; Ok(IQuoteBlock { children }) } }