Skip to main content

DataSource

Trait DataSource 

Source
pub trait DataSource: Send + Sync {
    // Required method
    fn fetch<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        spec: &'life1 DataSpec,
        options: &'life2 FetchOptions,
    ) -> Pin<Box<dyn Future<Output = Result<DataTable, ChartError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Data source plugin — fetches raw data from a provider.

Required Methods§

Source

fn fetch<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, spec: &'life1 DataSpec, options: &'life2 FetchOptions, ) -> Pin<Box<dyn Future<Output = Result<DataTable, ChartError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Fetch data as an Arrow-backed DataTable.

Implementors§