pub trait DecisionModelProvider: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn supports_artifact(&self, artifact: &Path) -> bool;
fn load_decision_model(
&self,
artifact: &Path,
) -> Result<Box<dyn DecisionModel>, RuntimeError>;
}Expand description
Backend extension capable of loading a local typed-decision artifact.
Required Methods§
fn name(&self) -> &str
fn supports_artifact(&self, artifact: &Path) -> bool
fn load_decision_model( &self, artifact: &Path, ) -> Result<Box<dyn DecisionModel>, RuntimeError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".