Skip to main content

DatasetConfigDb

Trait DatasetConfigDb 

Source
pub trait DatasetConfigDb:
    Send
    + Sync
    + 'static {
    // Required methods
    fn get_by_dataset_id<'life0, 'async_trait>(
        &'life0 self,
        dataset_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Option<DatasetConfiguration>, DatabaseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn upsert<'life0, 'async_trait>(
        &'life0 self,
        dataset_id: Uuid,
        patch: DatasetConfigurationPatch,
    ) -> Pin<Box<dyn Future<Output = Result<DatasetConfiguration, DatabaseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_by_dataset_id<'life0, 'async_trait>( &'life0 self, dataset_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<DatasetConfiguration>, DatabaseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn upsert<'life0, 'async_trait>( &'life0 self, dataset_id: Uuid, patch: DatasetConfigurationPatch, ) -> Pin<Box<dyn Future<Output = Result<DatasetConfiguration, DatabaseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§