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§
Sourcefn export(&self) -> SzResult<JsonString>
fn export(&self) -> SzResult<JsonString>
Exports the complete configuration as JSON
Sourcefn get_data_source_registry(&self) -> SzResult<JsonString>
fn get_data_source_registry(&self) -> SzResult<JsonString>
Gets the data source registry
Sourcefn register_data_source(&self, data_source_code: &str) -> SzResult<JsonString>
fn register_data_source(&self, data_source_code: &str) -> SzResult<JsonString>
Registers a new data source
Sourcefn unregister_data_source(&self, data_source_code: &str) -> SzResult<()>
fn unregister_data_source(&self, data_source_code: &str) -> SzResult<()>
Removes a data source from the configuration