pub struct UID {
pub id: ID,
}Expand description
Globally unique IDs that define an object’s ID in storage. Any Sui Object, that is a struct
with the key ability, must have id: UID as its first field.
These are globally unique in the sense that no two values of type UID are ever equal, in
other words for any two values id1: UID and id2: UID, id1 != id2.
This is a privileged type that can only be derived from a TxContext.
UID doesn’t have the drop ability, so deleting a UID requires a call to delete.
Fields§
§id: IDImplementations§
Trait Implementations§
Source§impl ConstStructTag for UID
impl ConstStructTag for UID
const STRUCT_TAG: UIDTypeTag
Source§impl<'de> Deserialize<'de> for UID
impl<'de> Deserialize<'de> for UID
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UID
Source§impl MoveDatatype for UID
impl MoveDatatype for UID
type StructTag = UIDTypeTag
impl StructuralPartialEq for UID
Auto Trait Implementations§
impl Freeze for UID
impl RefUnwindSafe for UID
impl Send for UID
impl Sync for UID
impl Unpin for UID
impl UnsafeUnpin for UID
impl UnwindSafe for UID
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more