Enum CEP78Error

Source
pub enum CEP78Error {
Show 173 variants InvalidAccount = 1, MissingInstaller = 2, InvalidInstaller = 3, UnexpectedKeyVariant = 4, MissingTokenOwner = 5, InvalidTokenOwner = 6, FailedToGetArgBytes = 7, FailedToCreateDictionary = 8, MissingStorageUref = 9, InvalidStorageUref = 10, MissingOwnersUref = 11, InvalidOwnersUref = 12, FailedToAccessStorageDictionary = 13, FailedToAccessOwnershipDictionary = 14, DuplicateMinted = 15, FailedToConvertToCLValue = 16, MissingCollectionName = 17, InvalidCollectionName = 18, FailedToSerializeMetaData = 19, MissingAccount = 20, MissingMintingStatus = 21, InvalidMintingStatus = 22, MissingCollectionSymbol = 23, InvalidCollectionSymbol = 24, MissingTotalTokenSupply = 25, InvalidTotalTokenSupply = 26, MissingTokenID = 27, InvalidTokenIdentifier = 28, MissingTokenOwners = 29, MissingAccountHash = 30, InvalidAccountHash = 31, TokenSupplyDepleted = 32, MissingOwnedTokensDictionary = 33, TokenAlreadyBelongsToMinterFatal = 34, FatalTokenIdDuplication = 35, InvalidMinter = 36, MissingMintingMode = 37, InvalidMintingMode = 38, MissingInstallerKey = 39, FailedToConvertToAccountHash = 40, InvalidBurner = 41, PreviouslyBurntToken = 42, MissingAllowMinting = 43, InvalidAllowMinting = 44, MissingNumberOfMintedTokens = 45, InvalidNumberOfMintedTokens = 46, MissingTokenMetaData = 47, InvalidTokenMetaData = 48, MissingApprovedAccountHash = 49, InvalidApprovedAccountHash = 50, MissingApprovedTokensDictionary = 51, TokenAlreadyApproved = 52, MissingApproveAll = 53, InvalidApproveAll = 54, MissingOperator = 55, InvalidOperator = 56, Phantom = 57, ContractAlreadyInitialized = 58, MintingIsPaused = 59, FailureToParseAccountHash = 60, VacantValueInDictionary = 61, MissingOwnershipMode = 62, InvalidOwnershipMode = 63, InvalidTokenMinter = 64, MissingOwnedTokens = 65, InvalidAccountKeyInDictionary = 66, MissingJsonSchema = 67, InvalidJsonSchema = 68, InvalidKey = 69, InvalidOwnedTokens = 70, MissingTokenURI = 71, InvalidTokenURI = 72, MissingNftKind = 73, InvalidNftKind = 74, MissingHolderMode = 75, InvalidHolderMode = 76, MissingWhitelistMode = 77, InvalidWhitelistMode = 78, MissingContractWhiteList = 79, InvalidContractWhitelist = 80, UnlistedContractHash = 81, InvalidContract = 82, EmptyContractWhitelist = 83, MissingReceiptName = 84, InvalidReceiptName = 85, InvalidJsonMetadata = 86, InvalidJsonFormat = 87, FailedToParseCep78Metadata = 88, FailedToParse721Metadata = 89, FailedToParseCustomMetadata = 90, InvalidCEP78Metadata = 91, FailedToJsonifyCEP78Metadata = 92, InvalidNFT721Metadata = 93, FailedToJsonifyNFT721Metadata = 94, InvalidCustomMetadata = 95, MissingNFTMetadataKind = 96, InvalidNFTMetadataKind = 97, MissingIdentifierMode = 98, InvalidIdentifierMode = 99, FailedToParseTokenId = 100, MissingMetadataMutability = 101, InvalidMetadataMutability = 102, FailedToJsonifyCustomMetadata = 103, ForbiddenMetadataUpdate = 104, MissingBurnMode = 105, InvalidBurnMode = 106, MissingHashByIndex = 107, InvalidHashByIndex = 108, MissingIndexByHash = 109, InvalidIndexByHash = 110, MissingPageTableURef = 111, InvalidPageTableURef = 112, MissingPageLimit = 113, InvalidPageLimit = 114, InvalidPageNumber = 115, InvalidPageIndex = 116, MissingUnmatchedHashCount = 117, InvalidUnmatchedHashCount = 118, MissingPackageHashForUpgrade = 119, MissingPageUref = 120, InvalidPageUref = 121, CannotUpgradeWithZeroSupply = 122, CannotInstallWithZeroSupply = 123, MissingMigrationFlag = 124, InvalidMigrationFlag = 125, ContractAlreadyMigrated = 126, UnregisteredOwnerInMint = 127, UnregisteredOwnerInTransfer = 128, MissingReportingMode = 129, InvalidReportingMode = 130, MissingPage = 131, UnregisteredOwnerFromMigration = 132, ExceededMaxTotalSupply = 133, MissingCep78PackageHash = 134, InvalidCep78InvalidHash = 135, InvalidPackageHashName = 136, InvalidAccessKeyName = 137, InvalidCheckForUpgrade = 138, InvalidNamedKeyConvention = 139, OwnerReverseLookupModeNotTransferable = 140, InvalidAdditionalRequiredMetadata = 141, InvalidOptionalMetadata = 142, MissingOptionalNFTMetadataKind = 143, InvalidOptionalNFTMetadataKind = 144, MissingAdditionalNFTMetadataKind = 145, InvalidAdditionalNFTMetadataKind = 146, InvalidRequirement = 147, MissingEventsMode = 148, InvalidEventsMode = 149, CannotUpgradeToMoreSupply = 150, MissingOperatorDict = 151, MissingApprovedDict = 152, MissingSpenderAccountHash = 153, InvalidSpenderAccountHash = 154, MissingOwnerTokenIdentifierKey = 155, InvalidTransferFilterContract = 156, MissingTransferFilterContract = 157, TransferFilterContractNeedsTransferableMode = 158, TransferFilterContractDenied = 159, MissingACLWhiteList = 160, InvalidACLWhitelist = 161, EmptyACLWhitelist = 162, InvalidACLPackageMode = 163, MissingACLPackageMode = 164, InvalidPackageOperatorMode = 165, MissingPackageOperatorMode = 166, InvalidOperatorBurnMode = 167, MissingOperatorBurnMode = 168, InvalidIdentifier = 169, DuplicateIdentifier = 170, GoingBelowZeroSupply = 171, ReverseLookupIntegrityViolation = 172, UnregisteredOwnerInBurn = 173,
}

Variants§

§

InvalidAccount = 1

§

MissingInstaller = 2

§

InvalidInstaller = 3

§

UnexpectedKeyVariant = 4

§

MissingTokenOwner = 5

§

InvalidTokenOwner = 6

§

FailedToGetArgBytes = 7

§

FailedToCreateDictionary = 8

§

MissingStorageUref = 9

§

InvalidStorageUref = 10

§

MissingOwnersUref = 11

§

InvalidOwnersUref = 12

§

FailedToAccessStorageDictionary = 13

§

FailedToAccessOwnershipDictionary = 14

§

DuplicateMinted = 15

§

FailedToConvertToCLValue = 16

§

MissingCollectionName = 17

§

InvalidCollectionName = 18

§

FailedToSerializeMetaData = 19

§

MissingAccount = 20

§

MissingMintingStatus = 21

§

InvalidMintingStatus = 22

§

MissingCollectionSymbol = 23

§

InvalidCollectionSymbol = 24

§

MissingTotalTokenSupply = 25

§

InvalidTotalTokenSupply = 26

§

MissingTokenID = 27

§

InvalidTokenIdentifier = 28

§

MissingTokenOwners = 29

§

MissingAccountHash = 30

§

InvalidAccountHash = 31

§

TokenSupplyDepleted = 32

§

MissingOwnedTokensDictionary = 33

§

TokenAlreadyBelongsToMinterFatal = 34

§

FatalTokenIdDuplication = 35

§

InvalidMinter = 36

§

MissingMintingMode = 37

§

InvalidMintingMode = 38

§

MissingInstallerKey = 39

§

FailedToConvertToAccountHash = 40

§

InvalidBurner = 41

§

PreviouslyBurntToken = 42

§

MissingAllowMinting = 43

§

InvalidAllowMinting = 44

§

MissingNumberOfMintedTokens = 45

§

InvalidNumberOfMintedTokens = 46

§

MissingTokenMetaData = 47

§

InvalidTokenMetaData = 48

§

MissingApprovedAccountHash = 49

§

InvalidApprovedAccountHash = 50

§

MissingApprovedTokensDictionary = 51

§

TokenAlreadyApproved = 52

§

MissingApproveAll = 53

§

InvalidApproveAll = 54

§

MissingOperator = 55

§

InvalidOperator = 56

§

Phantom = 57

§

ContractAlreadyInitialized = 58

§

MintingIsPaused = 59

§

FailureToParseAccountHash = 60

§

VacantValueInDictionary = 61

§

MissingOwnershipMode = 62

§

InvalidOwnershipMode = 63

§

InvalidTokenMinter = 64

§

MissingOwnedTokens = 65

§

InvalidAccountKeyInDictionary = 66

§

MissingJsonSchema = 67

§

InvalidJsonSchema = 68

§

InvalidKey = 69

§

InvalidOwnedTokens = 70

§

MissingTokenURI = 71

§

InvalidTokenURI = 72

§

MissingNftKind = 73

§

InvalidNftKind = 74

§

MissingHolderMode = 75

§

InvalidHolderMode = 76

§

MissingWhitelistMode = 77

§

InvalidWhitelistMode = 78

§

MissingContractWhiteList = 79

§

InvalidContractWhitelist = 80

§

UnlistedContractHash = 81

§

InvalidContract = 82

§

EmptyContractWhitelist = 83

§

MissingReceiptName = 84

§

InvalidReceiptName = 85

§

InvalidJsonMetadata = 86

§

InvalidJsonFormat = 87

§

FailedToParseCep78Metadata = 88

§

FailedToParse721Metadata = 89

§

FailedToParseCustomMetadata = 90

§

InvalidCEP78Metadata = 91

§

FailedToJsonifyCEP78Metadata = 92

§

InvalidNFT721Metadata = 93

§

FailedToJsonifyNFT721Metadata = 94

§

InvalidCustomMetadata = 95

§

MissingNFTMetadataKind = 96

§

InvalidNFTMetadataKind = 97

§

MissingIdentifierMode = 98

§

InvalidIdentifierMode = 99

§

FailedToParseTokenId = 100

§

MissingMetadataMutability = 101

§

InvalidMetadataMutability = 102

§

FailedToJsonifyCustomMetadata = 103

§

ForbiddenMetadataUpdate = 104

§

MissingBurnMode = 105

§

InvalidBurnMode = 106

§

MissingHashByIndex = 107

§

InvalidHashByIndex = 108

§

MissingIndexByHash = 109

§

InvalidIndexByHash = 110

§

MissingPageTableURef = 111

§

InvalidPageTableURef = 112

§

MissingPageLimit = 113

§

InvalidPageLimit = 114

§

InvalidPageNumber = 115

§

InvalidPageIndex = 116

§

MissingUnmatchedHashCount = 117

§

InvalidUnmatchedHashCount = 118

§

MissingPackageHashForUpgrade = 119

§

MissingPageUref = 120

§

InvalidPageUref = 121

§

CannotUpgradeWithZeroSupply = 122

§

CannotInstallWithZeroSupply = 123

§

MissingMigrationFlag = 124

§

InvalidMigrationFlag = 125

§

ContractAlreadyMigrated = 126

§

UnregisteredOwnerInMint = 127

§

UnregisteredOwnerInTransfer = 128

§

MissingReportingMode = 129

§

InvalidReportingMode = 130

§

MissingPage = 131

§

UnregisteredOwnerFromMigration = 132

§

ExceededMaxTotalSupply = 133

§

MissingCep78PackageHash = 134

§

InvalidCep78InvalidHash = 135

§

InvalidPackageHashName = 136

§

InvalidAccessKeyName = 137

§

InvalidCheckForUpgrade = 138

§

InvalidNamedKeyConvention = 139

§

OwnerReverseLookupModeNotTransferable = 140

§

InvalidAdditionalRequiredMetadata = 141

§

InvalidOptionalMetadata = 142

§

MissingOptionalNFTMetadataKind = 143

§

InvalidOptionalNFTMetadataKind = 144

§

MissingAdditionalNFTMetadataKind = 145

§

InvalidAdditionalNFTMetadataKind = 146

§

InvalidRequirement = 147

§

MissingEventsMode = 148

§

InvalidEventsMode = 149

§

CannotUpgradeToMoreSupply = 150

§

MissingOperatorDict = 151

§

MissingApprovedDict = 152

§

MissingSpenderAccountHash = 153

§

InvalidSpenderAccountHash = 154

§

MissingOwnerTokenIdentifierKey = 155

§

InvalidTransferFilterContract = 156

§

MissingTransferFilterContract = 157

§

TransferFilterContractNeedsTransferableMode = 158

§

TransferFilterContractDenied = 159

§

MissingACLWhiteList = 160

§

InvalidACLWhitelist = 161

§

EmptyACLWhitelist = 162

§

InvalidACLPackageMode = 163

§

MissingACLPackageMode = 164

§

InvalidPackageOperatorMode = 165

§

MissingPackageOperatorMode = 166

§

InvalidOperatorBurnMode = 167

§

MissingOperatorBurnMode = 168

§

InvalidIdentifier = 169

§

DuplicateIdentifier = 170

§

GoingBelowZeroSupply = 171

§

ReverseLookupIntegrityViolation = 172

§

UnregisteredOwnerInBurn = 173

Trait Implementations§

Source§

impl From<CEP78Error> for OdraError

Source§

fn from(error: CEP78Error) -> Self

Converts to this type from the input type.
Source§

impl SchemaErrors for CEP78Error

Source§

fn schema_errors() -> Vec<UserError>

Returns a vector of UserErrors.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more