Enum casper_node::types::DeployValidationFailure[][src]

pub enum DeployValidationFailure {
    InvalidChainName {
        expected: String,
        got: String,
    },
    ExcessiveDependencies {
        max_dependencies: u8,
        got: usize,
    },
    ExcessiveSize(ExcessiveSizeError),
    ExcessiveTimeToLive {
        max_ttl: TimeDiff,
        got: TimeDiff,
    },
    InvalidBodyHash,
    InvalidDeployHash,
    InvalidApproval {
        index: usize,
        error_msg: String,
    },
    ExcessiveSessionArgsLength {
        max_length: usize,
        got: usize,
    },
    ExcessivePaymentArgsLength {
        max_length: usize,
        got: usize,
    },
    MissingTransferAmount,
    InvalidTransferAmount,
    InsufficientTransferAmount {
        minimum: U512,
        attempted: U512,
    },
}

A representation of the way in which a deploy failed validation checks.

Variants

InvalidChainName

Invalid chain name.

Fields of InvalidChainName

expected: String

The expected chain name.

got: String

The received chain name.

ExcessiveDependencies

Too many dependencies.

Fields of ExcessiveDependencies

max_dependencies: u8

The dependencies limit.

got: usize

The actual number of dependencies provided.

ExcessiveSize(ExcessiveSizeError)

Deploy is too large.

ExcessiveTimeToLive

Excessive time-to-live.

Fields of ExcessiveTimeToLive

max_ttl: TimeDiff

The time-to-live limit.

got: TimeDiff

The received time-to-live.

InvalidBodyHash

The provided body hash does not match the actual hash of the body.

InvalidDeployHash

The provided deploy hash does not match the actual hash of the deploy.

InvalidApproval

Invalid approval.

Fields of InvalidApproval

index: usize

The index of the approval at fault.

error_msg: String

The approval validation error.

ExcessiveSessionArgsLength

Excessive length of deploy’s session args.

Fields of ExcessiveSessionArgsLength

max_length: usize

The byte size limit of session arguments.

got: usize

The received length of session arguments.

ExcessivePaymentArgsLength

Excessive length of deploy’s payment args.

Fields of ExcessivePaymentArgsLength

max_length: usize

The byte size limit of payment arguments.

got: usize

The received length of payment arguments.

MissingTransferAmount

Missing transfer amount.

InvalidTransferAmount

Invalid transfer amount.

InsufficientTransferAmount

Insufficient transfer amount.

Fields of InsufficientTransferAmount

minimum: U512

The minimum transfer amount.

attempted: U512

The attempted transfer amount.

Trait Implementations

impl Clone for DeployValidationFailure[src]

impl DataSize for DeployValidationFailure where
    ExcessiveSizeError: DataSize
[src]

impl Debug for DeployValidationFailure[src]

impl Display for DeployValidationFailure[src]

impl Eq for DeployValidationFailure[src]

impl Error for DeployValidationFailure[src]

impl From<ExcessiveSizeError> for DeployValidationFailure[src]

impl Hash for DeployValidationFailure[src]

impl Ord for DeployValidationFailure[src]

impl PartialEq<DeployValidationFailure> for DeployValidationFailure[src]

impl PartialOrd<DeployValidationFailure> for DeployValidationFailure[src]

impl StructuralEq for DeployValidationFailure[src]

impl StructuralPartialEq for DeployValidationFailure[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<T> CallHasher for T where
    T: Hash

impl<T> Conv for T

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

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

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

impl<T> FmtForward for T

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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<T> TryConv for T

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>, 

impl<T> WithSubscriber for T[src]