BorshRustEnumSized<T> class
Rust Enum Sized
An annotation for Rust style enums with sized data types (tuple or struct constructors).
@BorshRustEnumSized([ // enum RustEnum {
null, // Simple,
BorshTupleSized([BorshInt64(), BorshBool()]), // Tuple(i64, bool),
BorshStructSized({ 'x': BorshStringSized(10) }) // Object { x: String }
]) // }
final RustEnum property;
- Inheritance
-
- Object
- BorshAnnotation<
RustEnum< T> > - BorshRustEnumSized
- Implemented types
Constructors
-
BorshRustEnumSized.new(List<
BorshAnnotationSized?> variants) -
Creates an annotation for Rust style enums with sized data types (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<
BorshAnnotationSized?> -
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