Skip to main content

Interface: TypeOrigin

Store the origin of a data type where it first appeared in the version chain.

A data type is identified by the name of the module and the name of the struct/enum in combination.

Undefined behavior

Directly modifying any field is undefined behavior. The fields are only public for read-only access.

Properties

datatype_name

datatype_name: string

The name of the data type.

Here this either refers to an enum or a struct identifier.


module_name

module_name: string

The name of the module the data type resides in.


package

package: string

Storage ID of the package, where the given type first appeared.