UpgradePolicy
type UpgradePolicy
Representation of upgrade policy constants in `iota::package`.
type UpgradePolicy struct {
// contains filtered or unexported fields
}
func LiftFromExternalUpgradePolicy
func LiftFromExternalUpgradePolicy(handle uint64) *UpgradePolicy
func UpgradePolicyAdditive
func UpgradePolicyAdditive() *UpgradePolicy
Allows adding new functionalities (e.g., new public functions or structs) but restricts changes to existing functionalities.
func UpgradePolicyCompatible
func UpgradePolicyCompatible() *UpgradePolicy
The least restrictive policy. Permits changes to all function implementations, the removal of ability constraints on generic type parameters in function signatures, and modifications to private, public(friend), and entry function signatures. However, public function signatures and existing types cannot be changed.
func UpgradePolicyDepOnly
func UpgradePolicyDepOnly() *UpgradePolicy
Limits modifications to the package’s dependencies only.
func (*UpgradePolicy) AsU8
func (_self *UpgradePolicy) AsU8() uint8
Returns the internal representation.
func (*UpgradePolicy) DebugString
func (_self *UpgradePolicy) DebugString() string
func (*UpgradePolicy) Destroy
func (object *UpgradePolicy) Destroy()
func (*UpgradePolicy) Eq
func (_self *UpgradePolicy) Eq(other *UpgradePolicy) bool
func (*UpgradePolicy) Ne
func (_self *UpgradePolicy) Ne(other *UpgradePolicy) bool
func (*UpgradePolicy) String
func (_self *UpgradePolicy) String() string
func (*UpgradePolicy) ToDisplayString
func (_self *UpgradePolicy) ToDisplayString() string
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.