Enum miden_objects::NoteError
source · pub enum NoteError {
Show 13 variants
DuplicateFungibleAsset(AccountId),
DuplicateNonFungibleAsset(NonFungibleAsset),
EmptyAssetList,
InconsistentStubId(NoteId, NoteId),
InconsistentStubAssetHash(Digest, Digest),
InvalidStubDataLen(usize),
InvalidOriginIndex(String),
InvalidAssetData(AssetError),
NoteDeserializationError(DeserializationError),
NoteMetadataSenderInvalid(AccountError),
ScriptCompilationError(AssemblyError),
TooManyAssets(usize),
TooManyInputs(usize),
}Variants§
DuplicateFungibleAsset(AccountId)
DuplicateNonFungibleAsset(NonFungibleAsset)
EmptyAssetList
InconsistentStubId(NoteId, NoteId)
InconsistentStubAssetHash(Digest, Digest)
InvalidStubDataLen(usize)
InvalidOriginIndex(String)
InvalidAssetData(AssetError)
NoteDeserializationError(DeserializationError)
NoteMetadataSenderInvalid(AccountError)
ScriptCompilationError(AssemblyError)
TooManyAssets(usize)
TooManyInputs(usize)
Implementations§
source§impl NoteError
impl NoteError
pub fn duplicate_fungible_asset(faucet_id: AccountId) -> Self
pub fn duplicate_non_fungible_asset(asset: NonFungibleAsset) -> Self
pub fn empty_asset_list() -> Self
pub fn invalid_origin_index(msg: String) -> Self
pub fn too_many_assets(num_assets: usize) -> Self
pub fn too_many_inputs(num_inputs: usize) -> Self
Trait Implementations§
source§impl Error for NoteError
impl Error for NoteError
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 NoteError
impl PartialEq for NoteError
impl Eq for NoteError
impl StructuralPartialEq for NoteError
Auto Trait Implementations§
impl RefUnwindSafe for NoteError
impl Send for NoteError
impl Sync for NoteError
impl Unpin for NoteError
impl UnwindSafe for NoteError
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