[][src]Trait fondant_deps::Configure

pub trait Configure: Serialize + DeserializeOwned + Default {
    fn load_file<P: AsRef<Path>>(config_file: P) -> Result<Self, FondantError>;
fn load() -> Result<Self, FondantError>;
fn store(&self) -> Result<(), FondantError>;
fn store_file<P: AsRef<Path>>(
        &self,
        config_file: P
    ) -> Result<(), FondantError>; }

Derive this trait on a struct to mark it as a 'configuration' struct.

Required methods

fn load_file<P: AsRef<Path>>(config_file: P) -> Result<Self, FondantError>

fn load() -> Result<Self, FondantError>

fn store(&self) -> Result<(), FondantError>

fn store_file<P: AsRef<Path>>(&self, config_file: P) -> Result<(), FondantError>

Loading content...

Implementors

Loading content...