ObjectDataInterface
type ObjectDataInterface
Object data, either a package or struct
BCS
The BCS serialized form for this type is defined by the following ABNF:
```text object-data = object-data-struct / object-data-package
object-data-struct = %d00 object-move-struct object-data-package = %d01 object-move-package ```
type ObjectDataInterface interface {
// Try to interpret this object as a `MovePackage`
AsOptPackage() **MovePackage
// Try to interpret this object as a `MoveStruct`
AsOptStruct() *MoveStruct
// Return whether this object is a `MovePackage`
IsPackage() bool
// Return whether this object is a `MoveStruct`
IsStruct() bool
}