Trait finql_data::asset_handler::AssetHandler[][src]

pub trait AssetHandler {
#[must_use]    fn insert_asset<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        asset: &'life1 Asset
    ) -> Pin<Box<dyn Future<Output = Result<usize, DataError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn insert_asset_if_new<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        asset: &'life1 Asset,
        rename_asset: bool
    ) -> 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_asset_id<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        asset: &'life1 Asset
    ) -> Pin<Box<dyn Future<Output = Option<usize>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_asset_by_id<'life0, 'async_trait>(
        &'life0 mut self,
        id: usize
    ) -> Pin<Box<dyn Future<Output = Result<Asset, DataError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_asset_by_isin<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        id: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Asset, DataError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_all_assets<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Asset>, DataError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_asset<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        asset: &'life1 Asset
    ) -> Pin<Box<dyn Future<Output = Result<(), DataError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn delete_asset<'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
;
#[must_use] fn get_all_currencies<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Currency>, 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_asset<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    asset: &'life1 Asset
) -> 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 insert_asset_if_new<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    asset: &'life1 Asset,
    rename_asset: bool
) -> 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_asset_id<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    asset: &'life1 Asset
) -> Pin<Box<dyn Future<Output = Option<usize>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

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

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

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

Return a list of all assets ordered by name

#[must_use]fn update_asset<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    asset: &'life1 Asset
) -> 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_asset<'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]

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

We assume here that a currency is an Asset with a three letter name and no ISIN nor WKN

Loading content...

Implementors

Loading content...