[][src]Enum ergo_lib::chain::ergo_box::box_builder::ErgoBoxCandidateBuilderError

pub enum ErgoBoxCandidateBuilderError {
    BoxValueTooLow {
        min_box_value: BoxValue,
        box_size_bytes: usize,
    },
    NonMandatoryRegistersError(NonMandatoryRegistersError),
    ExclusiveMintedTokenError,
    MintedTokenRegisterOverwriteError(NonMandatoryRegisterId),
}

ErgoBoxCandidate builder errors

Variants

BoxValueTooLow

Box value is too low

Fields of BoxValueTooLow

min_box_value: BoxValue

minimum box value for that box size

box_size_bytes: usize

box size in bytes

NonMandatoryRegistersError(NonMandatoryRegistersError)

NonMandatoryRegisters error

ExclusiveMintedTokenError

When minting token no other tokens should be in the box (according to EIP4)

MintedTokenRegisterOverwriteError(NonMandatoryRegisterId)

When minting token R4, R5, R6 register are holding issued token info(according to EIP4) and cannot be used

Trait Implementations

impl Clone for ErgoBoxCandidateBuilderError[src]

impl Debug for ErgoBoxCandidateBuilderError[src]

impl Display for ErgoBoxCandidateBuilderError[src]

impl Eq for ErgoBoxCandidateBuilderError[src]

impl Error for ErgoBoxCandidateBuilderError[src]

impl From<ErgoBoxCandidateBuilderError> for TxBuilderError[src]

impl From<NonMandatoryRegistersError> for ErgoBoxCandidateBuilderError[src]

impl PartialEq<ErgoBoxCandidateBuilderError> for ErgoBoxCandidateBuilderError[src]

impl StructuralEq for ErgoBoxCandidateBuilderError[src]

impl StructuralPartialEq for ErgoBoxCandidateBuilderError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<F> TryExtractInto<F> for F[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,