pub struct SuiObjectData {
pub object_id: ObjectId,
pub version: Version,
pub digest: ObjectDigest,
pub type_: Option<ObjectType>,
pub owner: Option<Owner>,
pub previous_transaction: Option<TransactionDigest>,
pub storage_rebate: Option<u64>,
pub display: Option<DisplayFieldsResponse>,
pub content: Option<SuiParsedData>,
pub bcs: Option<SuiRawData>,
}Fields§
§object_id: ObjectId§version: VersionObject version.
digest: ObjectDigestBase64 string representing the object digest
type_: Option<ObjectType>The type of the object. Default to be None unless SuiObjectDataOptions.showType is set to true
owner: Option<Owner>The owner of this object. Default to be None unless SuiObjectDataOptions.showOwner is set to true
previous_transaction: Option<TransactionDigest>The digest of the transaction that created or last mutated this object. Default to be None unless SuiObjectDataOptions.showPreviousTransaction is set to true
storage_rebate: Option<u64>The 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.
display: Option<DisplayFieldsResponse>The Display metadata for frontend UI rendering, default to be None unless SuiObjectDataOptions.showContent is set to true This can also be None if the struct type does not have Display defined See more details in https://forums.sui.io/t/nft-object-display-proposal/4872
content: Option<SuiParsedData>Move object content or package content, default to be None unless SuiObjectDataOptions.showContent is set to true
bcs: Option<SuiRawData>Move object content or package content in BCS, default to be None unless SuiObjectDataOptions.showBcs is set to true
Implementations§
Source§impl SuiObjectData
impl SuiObjectData
pub fn object_ref(&self) -> ObjectRef
pub fn object_type(&self) -> Result<ObjectType, SuiObjectDataError>
pub fn is_gas_coin(&self) -> bool
pub fn struct_tag(&self) -> Result<StructTag, SuiObjectDataError>
pub fn take_object_type(&mut self) -> Result<ObjectType, SuiObjectDataError>
pub fn take_raw_object( &mut self, ) -> Result<SuiRawMoveObject, SuiObjectDataError>
pub fn take_raw_data(&mut self) -> Result<SuiRawData, SuiObjectDataError>
pub fn imm_or_owned_object_arg(&self) -> Result<ObjectArg, SuiObjectDataError>
pub fn owner(&self) -> Result<Owner, SuiObjectDataError>
Trait Implementations§
Source§impl Clone for SuiObjectData
impl Clone for SuiObjectData
Source§fn clone(&self) -> SuiObjectData
fn clone(&self) -> SuiObjectData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SuiObjectData
impl Debug for SuiObjectData
Source§impl<'de> Deserialize<'de> for SuiObjectData
impl<'de> Deserialize<'de> for SuiObjectData
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>,
Source§impl Display for SuiObjectData
impl Display for SuiObjectData
Source§impl PartialEq for SuiObjectData
impl PartialEq for SuiObjectData
Source§impl Serialize for SuiObjectData
impl Serialize for SuiObjectData
impl Eq for SuiObjectData
impl StructuralPartialEq for SuiObjectData
Auto Trait Implementations§
impl Freeze for SuiObjectData
impl RefUnwindSafe for SuiObjectData
impl Send for SuiObjectData
impl Sync for SuiObjectData
impl Unpin for SuiObjectData
impl UnwindSafe for SuiObjectData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more