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,
    ) -> Result<Box<dyn DecisionModel>, RuntimeError>;
}
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, ) -> Result<Box<dyn DecisionModel>, RuntimeError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl DecisionModelProvider for OnnxBackend

Source§

fn name(&self) -> &str

Source§

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

Source§

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

Implementors§