🧱nexus_primitives::object_state
Struct Inner
Positional key for an object's exact stored layout.
A shared key is required because each object module must expose the same observable storage position without sharing its stored value type.
public struct Inner has copy, drop, storeStruct Witness
Positional key for the package an object accepts as write authority.
This is separate from [Inner] because execution can change without a storage layout change.
Constants
Function add
Attach one stored layout and one package witness to a stable object.
Function inner
Borrow the exact stored layout without changing package authority.
Function inner_mut
Borrow the exact stored layout after verifying package authority.
Function has_witness
Return whether the object accepts the exact witness type.
Function assert_witness
Require the object to accept the exact witness type.
Function replace_witness
Replace an exact source witness with an exact target witness.
Function take_inner
Remove and return the exact stored layout during a declared transition.
Function add_inner
Attach the target layout during a declared transition.
Function destroy
Destroy a stable identity after removing its typed fields.
The inner value is returned because only its defining module knows how to destroy resources contained by that layout.
Function assert_upgrade_cap
Require an upgrade capability whose latest package introduced W.
Last updated

