pub trait ProviderFactory: Send + Sync {
// Required methods
fn kind(&self) -> &'static str;
fn deserialize(&self, config: Value) -> Result<ProviderComponents, String>;
}Required Methods§
fn kind(&self) -> &'static str
Sourcefn deserialize(&self, config: Value) -> Result<ProviderComponents, String>
fn deserialize(&self, config: Value) -> Result<ProviderComponents, String>
Instantiate a provider from its ProviderSpec::config blob.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".