pub trait CoinQueryData: Send + Sync {
    // Required methods
    fn coin(&self, utxo_id: UtxoId) -> StorageResult<Coin>;
    fn owned_coins_ids(
        &self,
        owner: &Address,
        start_coin: Option<UtxoId>,
        direction: IterDirection
    ) -> BoxedIter<'_, StorageResult<UtxoId>>;
    fn owned_coins(
        &self,
        owner: &Address,
        start_coin: Option<UtxoId>,
        direction: IterDirection
    ) -> BoxedIter<'_, StorageResult<Coin>>;
}

Required Methods§

source

fn coin(&self, utxo_id: UtxoId) -> StorageResult<Coin>

source

fn owned_coins_ids( &self, owner: &Address, start_coin: Option<UtxoId>, direction: IterDirection ) -> BoxedIter<'_, StorageResult<UtxoId>>

source

fn owned_coins( &self, owner: &Address, start_coin: Option<UtxoId>, direction: IterDirection ) -> BoxedIter<'_, StorageResult<Coin>>

Implementors§