1 2 3 4 5 6 7 8 9 10 11 12 13
use steel::*; #[derive(Debug, Error, Clone, Copy, PartialEq, Eq, IntoPrimitive)] #[repr(u32)] pub enum OreMintError { #[error("Amount too large")] AmountTooLarge = 0, #[error("Mint too frequently")] MintTooFrequently = 1, } error!(OreMintError);