logo
pub enum DeployConfigurationFailure {
Show 17 variants InvalidChainName { expected: String, got: String, }, ExcessiveDependencies { max_dependencies: u8, got: usize, }, ExcessiveSize(ExcessiveSizeError), ExcessiveTimeToLive { max_ttl: TimeDiff, got: TimeDiff, }, InvalidBodyHash, InvalidDeployHash, EmptyApprovals, InvalidApproval { index: usize, error_msg: String, }, ExcessiveSessionArgsLength { max_length: usize, got: usize, }, ExcessivePaymentArgsLength { max_length: usize, got: usize, }, MissingPaymentAmount, FailedToParsePaymentAmount, ExceededBlockGasLimit { block_gas_limit: u64, got: U512, }, MissingTransferAmount, FailedToParseTransferAmount, InsufficientTransferAmount { minimum: U512, attempted: U512, }, ExcessiveApprovals { got: u32, max_associated_keys: u32, },
}
Expand description

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

Variants

InvalidChainName

Fields

expected: String

The expected chain name.

got: String

The received chain name.

Invalid chain name.

ExcessiveDependencies

Fields

max_dependencies: u8

The dependencies limit.

got: usize

The actual number of dependencies provided.

Too many dependencies.

ExcessiveSize(ExcessiveSizeError)

Deploy is too large.

ExcessiveTimeToLive

Fields

max_ttl: TimeDiff

The time-to-live limit.

got: TimeDiff

The received time-to-live.

Excessive 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.

EmptyApprovals

The deploy has no approvals.

InvalidApproval

Fields

index: usize

The index of the approval at fault.

error_msg: String

The approval validation error.

Invalid approval.

ExcessiveSessionArgsLength

Fields

max_length: usize

The byte size limit of session arguments.

got: usize

The received length of session arguments.

Excessive length of deploy’s session args.

ExcessivePaymentArgsLength

Fields

max_length: usize

The byte size limit of payment arguments.

got: usize

The received length of payment arguments.

Excessive length of deploy’s payment args.

MissingPaymentAmount

Missing payment “amount” runtime argument.

FailedToParsePaymentAmount

Failed to parse payment “amount” runtime argument.

ExceededBlockGasLimit

Fields

block_gas_limit: u64

Configured block gas limit.

got: U512

The payment amount received.

The payment amount associated with the deploy exceeds the block gas limit.

MissingTransferAmount

Missing payment “amount” runtime argument

FailedToParseTransferAmount

Failed to parse transfer “amount” runtime argument.

InsufficientTransferAmount

Fields

minimum: U512

The minimum transfer amount.

attempted: U512

The attempted transfer amount.

Insufficient transfer amount.

ExcessiveApprovals

Fields

got: u32

Number of approvals on the deploy.

max_associated_keys: u32

The chainspec limit for max_associated_keys.

The amount of approvals on the deploy exceeds the max_associated_keys limit.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

If true, the type has a heap size that can vary at runtime, depending on the actual value.

The amount of space a value of the type always occupies. If IS_DYNAMIC is false, this is the total amount of heap memory occupied by the value. Otherwise this is a lower bound. Read more

Estimates the size of heap memory taken up by this value. Read more

Create a tree of memory estimations. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

👎Deprecated since 1.42.0:

use the Display impl or to_string()

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

🔬This is a nightly-only experimental API. (error_generic_member_access)

Provides type based access to context intended for error reports. Read more

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into a target type. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Compare self to key and return true if they are equal.

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

🔬This is a nightly-only experimental API. (provide_any)

Data providers should implement this method to provide all values they are able to provide by using demand. Read more

Should always be Self

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

Attempts to convert self into a target type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more