pub struct SuiObjectDataOptions {
pub show_type: bool,
pub show_owner: bool,
pub show_previous_transaction: bool,
pub show_display: bool,
pub show_content: bool,
pub show_bcs: bool,
pub show_storage_rebate: bool,
}Fields§
§show_type: boolWhether to show the type of the object. Default to be False
show_owner: boolWhether to show the owner of the object. Default to be False
show_previous_transaction: boolWhether to show the previous transaction digest of the object. Default to be False
show_display: boolWhether to show the Display metadata of the object for frontend rendering. Default to be False
show_content: boolWhether to show the content(i.e., package content or Move struct content) of the object. Default to be False
show_bcs: boolWhether to show the content in BCS format. Default to be False
show_storage_rebate: boolWhether to show the storage rebate of the object. Default to be False
Implementations§
Source§impl SuiObjectDataOptions
impl SuiObjectDataOptions
pub fn new() -> Self
Sourcepub fn bcs_lossless() -> Self
pub fn bcs_lossless() -> Self
return BCS data and all other metadata such as storage rebate
Sourcepub fn full_content() -> Self
pub fn full_content() -> Self
return full content except bcs
pub fn with_content(self) -> Self
pub fn with_owner(self) -> Self
pub fn with_type(self) -> Self
pub fn with_display(self) -> Self
pub fn with_bcs(self) -> Self
pub fn with_previous_transaction(self) -> Self
pub fn is_not_in_object_info(&self) -> bool
Trait Implementations§
Source§impl Clone for SuiObjectDataOptions
impl Clone for SuiObjectDataOptions
Source§fn clone(&self) -> SuiObjectDataOptions
fn clone(&self) -> SuiObjectDataOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SuiObjectDataOptions
impl Debug for SuiObjectDataOptions
Source§impl Default for SuiObjectDataOptions
impl Default for SuiObjectDataOptions
Source§fn default() -> SuiObjectDataOptions
fn default() -> SuiObjectDataOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuiObjectDataOptionswhere
SuiObjectDataOptions: Default,
impl<'de> Deserialize<'de> for SuiObjectDataOptionswhere
SuiObjectDataOptions: Default,
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
Source§impl PartialEq for SuiObjectDataOptions
impl PartialEq for SuiObjectDataOptions
Source§impl Serialize for SuiObjectDataOptions
impl Serialize for SuiObjectDataOptions
impl Eq for SuiObjectDataOptions
impl StructuralPartialEq for SuiObjectDataOptions
Auto Trait Implementations§
impl Freeze for SuiObjectDataOptions
impl RefUnwindSafe for SuiObjectDataOptions
impl Send for SuiObjectDataOptions
impl Sync for SuiObjectDataOptions
impl Unpin for SuiObjectDataOptions
impl UnwindSafe for SuiObjectDataOptions
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
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
Compare self to
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>
Converts
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>
Converts
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