Trait SzConfig

Source
pub trait SzConfig {
    // Required methods
    fn export(&self) -> SzResult<JsonString>;
    fn get_data_source_registry(&self) -> SzResult<JsonString>;
    fn register_data_source(
        &self,
        data_source_code: &str,
    ) -> SzResult<JsonString>;
    fn unregister_data_source(&self, data_source_code: &str) -> SzResult<()>;
}
Expand description

Configuration management operations

The SzConfig trait provides methods for managing Senzing configuration data.

Required Methods§

Source

fn export(&self) -> SzResult<JsonString>

Exports the complete configuration as JSON

Source

fn get_data_source_registry(&self) -> SzResult<JsonString>

Gets the data source registry

Source

fn register_data_source(&self, data_source_code: &str) -> SzResult<JsonString>

Registers a new data source

Source

fn unregister_data_source(&self, data_source_code: &str) -> SzResult<()>

Removes a data source from the configuration

Implementors§