pub struct Object {
pub owner: Owner,
pub previous_transaction: TransactionDigest,
pub storage_rebate: u64,
/* private fields */
}Expand description
Alias of sui_types::object::ObjectInner, skipping the Arc in sui_types::object::Object.
Fields§
§owner: OwnerThe owner that unlocks this object
previous_transaction: TransactionDigestThe digest of the transaction that created or last mutated this object
storage_rebate: u64The amount of SUI we would rebate if this object gets deleted. This number is re-calculated each time the object is mutated based on the present storage gas price.
Implementations§
Source§impl Object
impl Object
pub fn digest(&self) -> ObjectDigest
Available on crate feature
hash only.Sourcepub fn object_arg(&self, mutable: bool) -> ObjectArg
Available on crate feature hash only.
pub fn object_arg(&self, mutable: bool) -> ObjectArg
hash only.Input for transactions that interact with this object.
Source§impl Object
impl Object
Sourcepub const fn as_move(&self) -> Option<&MoveObject>
pub const fn as_move(&self) -> Option<&MoveObject>
Reference to the underlying Move object, if it is one.
Sourcepub const fn as_package(&self) -> Option<&MovePackage>
pub const fn as_package(&self) -> Option<&MovePackage>
Reference to the underlying Move package, if it is one.
Sourcepub fn into_move(self) -> Option<MoveObject>
pub fn into_move(self) -> Option<MoveObject>
Convert to the underlying Move object, if it is one.
Sourcepub fn into_package(self) -> Option<MovePackage>
pub fn into_package(self) -> Option<MovePackage>
Convert to the underlying Move package, if it is one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Object
impl<'de> Deserialize<'de> for Object
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 Object
impl StructuralPartialEq for Object
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
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