BorshRustEnum<T> class
Rust Enum
An annotation for complex Rust style enums (tuple or struct constructors).
@BorshRustEnum([ // enum RustEnum {
null, // Simple,
BorshTuple([BorshInt64(), BorshBool()]), // Tuple(i64, bool),
BorshStruct({ 'x': BorshString() }) // Object { x: String }
]) // }
final RustEnum property;
- Inheritance
-
- Object
- BorshAnnotation<
RustEnum< T> > - BorshRustEnumTyped<
T, BorshAnnotation> - BorshRustEnum
Constructors
-
BorshRustEnum.new(List<
BorshAnnotation?> variants) -
Creates an annotation for complex Rust style enums (tuple or struct constructors).
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
variants
→ List<
BorshAnnotation?> -
The enum variants constructor parameters.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited