#[repr(u32)]pub enum CandyError {
Show 30 variants
IncorrectOwner = 0,
Uninitialized = 1,
MintMismatch = 2,
IndexGreaterThanLength = 3,
NumericalOverflowError = 4,
TooManyCreators = 5,
CandyMachineEmpty = 6,
HiddenSettingsDoNotHaveConfigLines = 7,
CannotChangeNumberOfLines = 8,
CannotSwitchToHiddenSettings = 9,
IncorrectCollectionAuthority = 10,
MetadataAccountMustBeEmpty = 11,
NoChangingCollectionDuringMint = 12,
ExceededLengthError = 13,
MissingConfigLinesSettings = 14,
CannotIncreaseLength = 15,
CannotSwitchFromHiddenSettings = 16,
CannotChangeSequentialIndexGeneration = 17,
CollectionKeyMismatch = 18,
CouldNotRetrieveConfigLineData = 19,
NotFullyLoaded = 20,
InstructionBuilderFailed = 21,
MissingCollectionAuthorityRecord = 22,
MissingMetadataDelegateRecord = 23,
InvalidTokenStandard = 24,
MissingTokenAccount = 25,
MissingTokenRecord = 26,
MissingInstructionsSysvar = 27,
MissingSplAtaProgram = 28,
InvalidAccountVersion = 29,
}Variants§
IncorrectOwner = 0
Uninitialized = 1
MintMismatch = 2
IndexGreaterThanLength = 3
NumericalOverflowError = 4
TooManyCreators = 5
CandyMachineEmpty = 6
HiddenSettingsDoNotHaveConfigLines = 7
CannotChangeNumberOfLines = 8
CannotSwitchToHiddenSettings = 9
IncorrectCollectionAuthority = 10
MetadataAccountMustBeEmpty = 11
NoChangingCollectionDuringMint = 12
ExceededLengthError = 13
MissingConfigLinesSettings = 14
CannotIncreaseLength = 15
CannotSwitchFromHiddenSettings = 16
CannotChangeSequentialIndexGeneration = 17
CollectionKeyMismatch = 18
CouldNotRetrieveConfigLineData = 19
NotFullyLoaded = 20
InstructionBuilderFailed = 21
MissingCollectionAuthorityRecord = 22
MissingMetadataDelegateRecord = 23
InvalidTokenStandard = 24
MissingTokenAccount = 25
MissingTokenRecord = 26
MissingInstructionsSysvar = 27
MissingSplAtaProgram = 28
InvalidAccountVersion = 29
Implementations§
Trait Implementations§
Source§impl Clone for CandyError
impl Clone for CandyError
Source§fn clone(&self) -> CandyError
fn clone(&self) -> CandyError
Returns a duplicate 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 CandyError
impl Debug for CandyError
Source§impl Display for CandyError
impl Display for CandyError
Source§impl From<CandyError> for Error
impl From<CandyError> for Error
Source§fn from(error_code: CandyError) -> Error
fn from(error_code: CandyError) -> Error
Converts to this type from the input type.
Source§impl From<CandyError> for u32
impl From<CandyError> for u32
Source§fn from(e: CandyError) -> u32
fn from(e: CandyError) -> u32
Converts to this type from the input type.
impl Copy for CandyError
Auto Trait Implementations§
impl Freeze for CandyError
impl RefUnwindSafe for CandyError
impl Send for CandyError
impl Sync for CandyError
impl Unpin for CandyError
impl UnwindSafe for CandyError
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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