Skip to main content

CreateEnrichmentStrategy

Trait CreateEnrichmentStrategy 

Source
pub trait CreateEnrichmentStrategy<T: Entity = Row>: Send + Sync {
    // Required methods
    fn create_children<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        writer: Arc<dyn ICRUDRepository>,
        enrichment: &'life1 Enrichment,
        parent: &'life2 mut T,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn create_linked<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        writer: Arc<dyn ICRUDRepository>,
        enrichment: &'life1 Enrichment,
        parent: &'life2 mut T,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn create_children<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, writer: Arc<dyn ICRUDRepository>, enrichment: &'life1 Enrichment, parent: &'life2 mut T, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn create_linked<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, writer: Arc<dyn ICRUDRepository>, enrichment: &'life1 Enrichment, parent: &'life2 mut T, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§