pub trait ModelLoaderApiRepo {
    // Required method
    fn get(&self, filename: &str) -> Result<PathBuf, ApiError>;
}
Expand description

ModelLoaderApiRepo is a trait that abstracts the repository API methods. It provides a single method get that retrieves a file from the repository. This trait is used for dependency injection and testing purposes.

Required Methods§

source

fn get(&self, filename: &str) -> Result<PathBuf, ApiError>

Implementations on Foreign Types§

source§

impl ModelLoaderApiRepo for ApiRepo

source§

fn get(&self, filename: &str) -> Result<PathBuf, ApiError>

Implementors§