Attribute Macro soroban_sdk::contracterror
source · [−]#[contracterror]
Expand description
Generates conversions from the repr(u32) enum from/into a Status
.
There are some constraints on the types that are supported:
- Enum must derive
Copy
. - Enum variants must have an explicit integer literal.
- Enum variants must have a value convertible to u32.
Includes the type in the contract spec so that clients can generate bindings for the type.