pub enum ContractError {
Show 24 variants
ParseError(ParseError),
ParseIntError(ParseIntError),
ParseBoolError(ParseBoolError),
UnsupportedCustomAttributeType {
key: String,
value: String,
},
AttributeMissing(String),
Std(StdError),
Ownership(OwnershipError),
Version(VersionError),
Claimed {},
NotCreator {},
NotMinter {},
NotMinterOrCreator {},
Expired {},
ApprovalNotFound {
spender: String,
},
NoWithdrawAddress {},
CollectionNameEmpty {},
CollectionSymbolEmpty {},
CollectionDescriptionEmpty {},
CollectionDescriptionTooLong {
max_length: u32,
},
InvalidRoyalties(String),
TraitTypeEmpty {},
TraitValueEmpty {},
TraitDisplayTypeEmpty {},
NoInfo,
}Variants§
ParseError(ParseError)
ParseIntError(ParseIntError)
ParseBoolError(ParseBoolError)
UnsupportedCustomAttributeType
AttributeMissing(String)
Std(StdError)
Ownership(OwnershipError)
Version(VersionError)
Claimed
NotCreator
NotMinter
NotMinterOrCreator
Expired
ApprovalNotFound
NoWithdrawAddress
CollectionNameEmpty
CollectionSymbolEmpty
CollectionDescriptionEmpty
CollectionDescriptionTooLong
InvalidRoyalties(String)
TraitTypeEmpty
TraitValueEmpty
TraitDisplayTypeEmpty
NoInfo
Trait Implementations§
Source§impl Debug for Cw721ContractError
impl Debug for Cw721ContractError
Source§impl Display for Cw721ContractError
impl Display for Cw721ContractError
Source§impl Error for Cw721ContractError
impl Error for Cw721ContractError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<OwnershipError> for Cw721ContractError
impl From<OwnershipError> for Cw721ContractError
Source§fn from(source: OwnershipError) -> Cw721ContractError
fn from(source: OwnershipError) -> Cw721ContractError
Converts to this type from the input type.
Source§impl From<ParseBoolError> for Cw721ContractError
impl From<ParseBoolError> for Cw721ContractError
Source§fn from(source: ParseBoolError) -> Cw721ContractError
fn from(source: ParseBoolError) -> Cw721ContractError
Converts to this type from the input type.
Source§impl From<ParseError> for Cw721ContractError
impl From<ParseError> for Cw721ContractError
Source§fn from(source: ParseError) -> Cw721ContractError
fn from(source: ParseError) -> Cw721ContractError
Converts to this type from the input type.
Source§impl From<ParseIntError> for Cw721ContractError
impl From<ParseIntError> for Cw721ContractError
Source§fn from(source: ParseIntError) -> Cw721ContractError
fn from(source: ParseIntError) -> Cw721ContractError
Converts to this type from the input type.
Source§impl From<StdError> for Cw721ContractError
impl From<StdError> for Cw721ContractError
Source§fn from(source: StdError) -> Cw721ContractError
fn from(source: StdError) -> Cw721ContractError
Converts to this type from the input type.
Source§impl From<VersionError> for Cw721ContractError
impl From<VersionError> for Cw721ContractError
Source§fn from(source: VersionError) -> Cw721ContractError
fn from(source: VersionError) -> Cw721ContractError
Converts to this type from the input type.
Source§impl PartialEq for Cw721ContractError
impl PartialEq for Cw721ContractError
impl StructuralPartialEq for Cw721ContractError
Auto Trait Implementations§
impl Freeze for Cw721ContractError
impl !RefUnwindSafe for Cw721ContractError
impl Send for Cw721ContractError
impl Sync for Cw721ContractError
impl Unpin for Cw721ContractError
impl UnsafeUnpin for Cw721ContractError
impl !UnwindSafe for Cw721ContractError
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> 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