Struct miden_objects::assets::NonFungibleAssetDetails
source · pub struct NonFungibleAssetDetails { /* private fields */ }Expand description
Details about a non-fungible asset.
Unlike NonFungibleAsset struct, this struct contains full details of a non-fungible asset.
Implementations§
source§impl NonFungibleAssetDetails
impl NonFungibleAssetDetails
sourcepub fn new(
faucet_id: AccountId,
asset_data: Vec<u8>
) -> Result<Self, AssetError>
pub fn new( faucet_id: AccountId, asset_data: Vec<u8> ) -> Result<Self, AssetError>
Returns asset details instantiated from the specified faucet ID and asset data.
§Errors
Returns an error if the provided faucet ID is not for a non-fungible asset faucet.
sourcepub fn asset_data(&self) -> &[u8] ⓘ
pub fn asset_data(&self) -> &[u8] ⓘ
Returns asset data in binary format.
Trait Implementations§
source§impl Clone for NonFungibleAssetDetails
impl Clone for NonFungibleAssetDetails
source§fn clone(&self) -> NonFungibleAssetDetails
fn clone(&self) -> NonFungibleAssetDetails
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for NonFungibleAssetDetails
impl Debug for NonFungibleAssetDetails
source§impl PartialEq for NonFungibleAssetDetails
impl PartialEq for NonFungibleAssetDetails
source§fn eq(&self, other: &NonFungibleAssetDetails) -> bool
fn eq(&self, other: &NonFungibleAssetDetails) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for NonFungibleAssetDetails
impl StructuralPartialEq for NonFungibleAssetDetails
Auto Trait Implementations§
impl Freeze for NonFungibleAssetDetails
impl RefUnwindSafe for NonFungibleAssetDetails
impl Send for NonFungibleAssetDetails
impl Sync for NonFungibleAssetDetails
impl Unpin for NonFungibleAssetDetails
impl UnwindSafe for NonFungibleAssetDetails
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