Which one represents something like tokenId?
#[storage(read, write)]
fn mint(recipient: Identity, sub_id: SubId, amount: u64) {
// Checks to ensure this is a valid mint.
let asset = AssetId::new(ContractId::this(), sub_id);
require(amount == 1, MintError::CannotMintMoreThanOneNFTWithSubId);
require(
storage
.total_supply
.get(asset)
.try_read()
.is_none(),
MintError::NFTAlreadyMinted,
);
// Mint the NFT
let _ = _mint(
storage.total_assets,
storage.total_supply,
recipient,
sub_id,
amount,
);
}