Skip to main content

DecisionModelProvider

Trait DecisionModelProvider 

Source
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,
    ) -> RuntimeResult<Box<dyn DecisionModel>>;
}
Expand description

Backend extension capable of loading a local typed-decision artifact.

Required Methods§

Source

fn name(&self) -> &str

Source

fn supports_artifact(&self, artifact: &Path) -> bool

Source

fn load_decision_model( &self, artifact: &Path, ) -> RuntimeResult<Box<dyn DecisionModel>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§