ModelFilesRepositoryPort

Trait ModelFilesRepositoryPort 

Source
pub trait ModelFilesRepositoryPort: Send + Sync {
    // Required method
    fn insert<'life0, 'life1, 'async_trait>(
        &'life0 self,
        model_file: &'life1 NewModelFile,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Repository trait for model files metadata.

We don’t depend on gglib_db directly - adapters inject the implementation. This type is re-exported from gglib_db for use in adapters.

Required Methods§

Source

fn insert<'life0, 'life1, 'async_trait>( &'life0 self, model_file: &'life1 NewModelFile, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Insert a new model file record.

Implementors§