Trait Repo

Source
pub trait Repo {
    // Required methods
    fn load_table(&self, name: &str) -> Result<DataTable, String>;
    fn load_data_set(&self, name: &str) -> Result<DataSet, String>;
}
Expand description

Repo is a collection of DataTables

Required Methods§

Source

fn load_table(&self, name: &str) -> Result<DataTable, String>

Loads the DataTable with matching name

Source

fn load_data_set(&self, name: &str) -> Result<DataSet, String>

Loads the DataTable with matching name

Implementations§

Source§

impl dyn Repo

Source

pub fn default() -> impl Repo

Gets the default repository

Currently, this is the only supported repository. In the current set-up all data-tables are included in the binary.

This means that no network connection is required to connect to the Repo

Implementors§