Skip to main content

Display

type Display

A typed view of an on-chain `0x2::display::Display<T>` object.

type Display struct {
// contains filtered or unexported fields
}

func DisplayTryFromBcs

func DisplayTryFromBcs(bytes []byte) (*Display, error)

Decode from BCS bytes, without validating the on-chain type tag.

func DisplayTryFromObjectWithType

func DisplayTryFromObjectWithType(object *Object, typeParam *TypeTag) (*Display, error)

Decode from an on-chain object, validating its Move type tag, including that its type parameter equals `type_param`.

func LiftFromExternalDisplay

func LiftFromExternalDisplay(handle uint64) *Display

func (*Display) DebugString

func (_self *Display) DebugString() string

func (*Display) Destroy

func (object *Display) Destroy()

func (*Display) Fields

func (_self *Display) Fields() map[string]string

The display template as key/value pairs (e.g. `name`, `link`, `image_url`, `description`).

func (*Display) Id

func (_self *Display) Id() *ObjectId

The object's ID.

func (*Display) Version

func (_self *Display) Version() uint16

Version, bumped manually by the publisher on each update.