Struct concordium_std::Reject[][src]

#[repr(transparent)]
pub struct Reject { pub error_code: NonZeroI32, }
Expand description

An error message, signalling rejection of a smart contract invocation. The client will see the error code as a reject reason; if a schema is provided, the error message corresponding to the error code will be displayed. The valid range for an error code is from i32::MIN to -1.

Fields

error_code: NonZeroI32

Implementations

This returns None for all values >= 0 and Some otherwise.

Trait Implementations

Formats the value using the given formatter. Read more

Default error is i32::MIN.

Returns the “default value” for a type. Read more

Performs the conversion.

Full is mapped to i32::MIN+3, Malformed is mapped to i32::MIN+4.

Performs the conversion.

MissingInitPrefix is mapped to i32::MIN + 5, TooLong to i32::MIN + 6, ContainsDot to i32::MIN + 9, and InvalidCharacters to i32::MIN + 10.

Performs the conversion.

MissingDotSeparator is mapped to i32::MIN + 7, TooLong to i32::MIN + 8, and InvalidCharacters to i32::MIN + 11.

Performs the conversion.

The error code is i32::MIN + 12

Performs the conversion.

Performs the conversion.

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

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.