pub trait TransformMiddleware: Send + Sync {
// Required method
fn transform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
data: DataTable,
spec: &'life1 TransformSpec,
context: &'life2 TransformContext,
) -> Pin<Box<dyn Future<Output = Result<TransformResult, ChartError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Transform middleware — processes data between fetch and render.
Required Methods§
Sourcefn transform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
data: DataTable,
spec: &'life1 TransformSpec,
context: &'life2 TransformContext,
) -> Pin<Box<dyn Future<Output = Result<TransformResult, ChartError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn transform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
data: DataTable,
spec: &'life1 TransformSpec,
context: &'life2 TransformContext,
) -> Pin<Box<dyn Future<Output = Result<TransformResult, ChartError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Transform input data according to the spec.