TransferRepo

Trait TransferRepo 

Source
pub trait TransferRepo {
    // Required methods
    fn save<'life0, 'async_trait>(
        &'life0 self,
        transfer: Transfer,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn fetch_by_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        transfer_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Transfer>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        transfer_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn query<'life0, 'async_trait>(
        &'life0 self,
        query: TransferQuery,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Transfer>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn change_status<'life0, 'async_trait>(
        &'life0 self,
        transfer_id: String,
        status: TransferStatus,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn save<'life0, 'async_trait>( &'life0 self, transfer: Transfer, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn fetch_by_id<'life0, 'life1, 'async_trait>( &'life0 self, transfer_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<Transfer>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

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

Source

fn query<'life0, 'async_trait>( &'life0 self, query: TransferQuery, ) -> Pin<Box<dyn Future<Output = Result<Vec<Transfer>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn change_status<'life0, 'async_trait>( &'life0 self, transfer_id: String, status: TransferStatus, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§