Enum miden_objects::AssetError
source · pub enum AssetError {
AmountTooBig(u64),
AssetAmountNotSufficient(u64, u64),
FungibleAssetInvalidTag(u32),
FungibleAssetInvalidWord(Word),
InconsistentFaucetIds(AccountId, AccountId),
InvalidAccountId(String),
InvalidFieldElement(String),
NonFungibleAssetInvalidTag(u32),
NotAFungibleFaucetId(AccountId, AccountType),
NotANonFungibleFaucetId(AccountId),
NotAnAsset(Word),
TokenSymbolError(String),
}Variants§
AmountTooBig(u64)
AssetAmountNotSufficient(u64, u64)
FungibleAssetInvalidTag(u32)
FungibleAssetInvalidWord(Word)
InconsistentFaucetIds(AccountId, AccountId)
InvalidAccountId(String)
InvalidFieldElement(String)
NonFungibleAssetInvalidTag(u32)
NotAFungibleFaucetId(AccountId, AccountType)
NotANonFungibleFaucetId(AccountId)
NotAnAsset(Word)
TokenSymbolError(String)
Trait Implementations§
source§impl Clone for AssetError
impl Clone for AssetError
source§fn clone(&self) -> AssetError
fn clone(&self) -> AssetError
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 AssetError
impl Debug for AssetError
source§impl Display for AssetError
impl Display for AssetError
source§impl Error for AssetError
impl Error for AssetError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for AssetError
impl PartialEq for AssetError
source§fn eq(&self, other: &AssetError) -> bool
fn eq(&self, other: &AssetError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for AssetError
impl StructuralPartialEq for AssetError
Auto Trait Implementations§
impl Freeze for AssetError
impl RefUnwindSafe for AssetError
impl Send for AssetError
impl Sync for AssetError
impl Unpin for AssetError
impl UnwindSafe for AssetError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)