Struct fuel_core::resource_query::SpendQuery
source · pub struct SpendQuery { /* private fields */ }
Expand description
The prepared spend queries.
Implementations§
source§impl SpendQuery
impl SpendQuery
pub fn new(
owner: Address,
query_per_asset: &[AssetSpendTarget],
exclude_vec: Option<Vec<ResourceId>>
) -> Result<Self, ResourceQueryError>
sourcepub fn assets(&self) -> &Vec<AssetSpendTarget> ⓘ
pub fn assets(&self) -> &Vec<AssetSpendTarget> ⓘ
Return [Asset
]s.
sourcepub fn asset_queries<'a>(&'a self, db: &'a Database) -> Vec<AssetQuery<'a>> ⓘ
pub fn asset_queries<'a>(&'a self, db: &'a Database) -> Vec<AssetQuery<'a>> ⓘ
Return AssetQuery
s.