pub struct ExecutorConfigEntry {
pub name: &'static str,
pub import: fn(ImportRunner) -> ImportRunner,
pub export: fn(SheetOptions) -> SheetOptions,
}Expand description
执行器的模型级默认配置(executor_config! 链接期注册,按注册名关联)
让「导入导出中心」按名拿到 runner 时,自动带上该模型的计算列 / 合并开关 / 批大小等, 不用在每个调用点重复拼装。
Fields§
§name: &'static str§import: fn(ImportRunner) -> ImportRunner定制导入 runner(ImportRunner::merged / computed / batch_size …)
export: fn(SheetOptions) -> SheetOptions定制导出工作表配置(SheetOptions::computed / transform …)
Trait Implementations§
impl Collect for ExecutorConfigEntry
Auto Trait Implementations§
impl Freeze for ExecutorConfigEntry
impl RefUnwindSafe for ExecutorConfigEntry
impl Send for ExecutorConfigEntry
impl Sync for ExecutorConfigEntry
impl Unpin for ExecutorConfigEntry
impl UnsafeUnpin for ExecutorConfigEntry
impl UnwindSafe for ExecutorConfigEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more