Struct fuel_core::query::asset_query::AssetQuery
source · pub struct AssetQuery<'a> {
pub owner: &'a Address,
pub asset: &'a AssetSpendTarget,
pub exclude: Option<&'a Exclude>,
pub database: &'a Database,
/* private fields */
}
Fields§
§owner: &'a Address
§asset: &'a AssetSpendTarget
§exclude: Option<&'a Exclude>
§database: &'a Database
Implementations§
source§impl<'a> AssetQuery<'a>
impl<'a> AssetQuery<'a>
pub fn new( owner: &'a Address, asset: &'a AssetSpendTarget, exclude: Option<&'a Exclude>, database: &'a Database ) -> Self
sourcepub fn coins(&self) -> impl Iterator<Item = StorageResult<CoinType>> + '_
pub fn coins(&self) -> impl Iterator<Item = StorageResult<CoinType>> + '_
Returns the iterator over all valid(spendable, allowed by exclude
) coins of the owner
for the asset_id
.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AssetQuery<'a>
impl<'a> Send for AssetQuery<'a>
impl<'a> Sync for AssetQuery<'a>
impl<'a> Unpin for AssetQuery<'a>
impl<'a> !UnwindSafe for AssetQuery<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more