[][src]Trait fondant::Configure

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

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

Required methods

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

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

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

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

Loading content...

Implementors

Loading content...