Trait finql_data::transaction_handler::TransactionHandler[][src]

pub trait TransactionHandler: AssetHandler {
#[must_use]    fn insert_transaction<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        transaction: &'life1 Transaction
    ) -> Pin<Box<dyn Future<Output = Result<usize, DataError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_transaction_by_id<'life0, 'async_trait>(
        &'life0 mut self,
        id: usize
    ) -> Pin<Box<dyn Future<Output = Result<Transaction, DataError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_all_transactions<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Transaction>, DataError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_transaction<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        transaction: &'life1 Transaction
    ) -> Pin<Box<dyn Future<Output = Result<(), DataError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn delete_transaction<'life0, 'async_trait>(
        &'life0 mut self,
        id: usize
    ) -> Pin<Box<dyn Future<Output = Result<(), DataError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Handler for globally available data of transactions and related data

Required methods

#[must_use]fn insert_transaction<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    transaction: &'life1 Transaction
) -> Pin<Box<dyn Future<Output = Result<usize, DataError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn get_transaction_by_id<'life0, 'async_trait>(
    &'life0 mut self,
    id: usize
) -> Pin<Box<dyn Future<Output = Result<Transaction, DataError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn get_all_transactions<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<Transaction>, DataError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn update_transaction<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    transaction: &'life1 Transaction
) -> Pin<Box<dyn Future<Output = Result<(), DataError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn delete_transaction<'life0, 'async_trait>(
    &'life0 mut self,
    id: usize
) -> Pin<Box<dyn Future<Output = Result<(), DataError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...