Skip to content

AssetClass

Extends: RefCounted

Description

Method Descriptions

_init

func _init(policy_id: PolicyId, asset_name: AssetName) -> AssetClass

to_unit

func to_unit() -> String

Convert the AssetClass.

from_unit (static)

func from_unit(asset_unit: String) -> FromUnitResult

Try to parse an AssetClass hex encodings.

Sub-classes

FromUnitResult

Property Descriptions

value

var value: AssetClass
  • Getter: @value_getter

WARNING: This function may fail! First match on tag or call is_ok.

error

var error: String
  • Getter: @error_getter

WARNING: This function may fail! First match on tag or call is_err.

Method Descriptions

_init

func _init(results: ArrayResult) -> FromUnitResult