22 lines
475 B
Rust
22 lines
475 B
Rust
use super::macros::intermediate;
|
|
|
|
use super::IObject;
|
|
use crate::error::CustomError;
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub(crate) struct ITableCell {
|
|
pub(crate) children: Vec<IObject>,
|
|
}
|
|
|
|
intermediate!(ITableCell, TableCell, original, registry, {
|
|
let children = {
|
|
let mut ret = Vec::new();
|
|
for obj in original.children.iter() {
|
|
ret.push(IObject::new(registry.clone(), obj).await?);
|
|
}
|
|
ret
|
|
};
|
|
|
|
Ok(ITableCell { children })
|
|
});
|