pub enum SuiPastObjectResponse {
VersionFound(SuiObjectData),
ObjectNotExists(Address),
ObjectDeleted(SuiObjectRef),
VersionNotFound(Address, Version),
VersionTooHigh {
object_id: Address,
asked_version: Version,
latest_version: Version,
},
}Variants§
VersionFound(SuiObjectData)
The object exists and is found with this version
ObjectNotExists(Address)
The object does not exist
ObjectDeleted(SuiObjectRef)
The object is found to be deleted with this version
VersionNotFound(Address, Version)
The object exists but not found with this version
VersionTooHigh
The asked object version is higher than the latest
Implementations§
Source§impl SuiPastObjectResponse
impl SuiPastObjectResponse
Sourcepub fn object(&self) -> Result<&SuiObjectData, SuiPastObjectResponseError>
pub fn object(&self) -> Result<&SuiObjectData, SuiPastObjectResponseError>
Returns a reference to the object if there is any, otherwise an Err
Sourcepub fn into_object(self) -> Result<SuiObjectData, SuiPastObjectResponseError>
pub fn into_object(self) -> Result<SuiObjectData, SuiPastObjectResponseError>
Returns the object value if there is any, otherwise an Err
Trait Implementations§
Source§impl Clone for SuiPastObjectResponse
impl Clone for SuiPastObjectResponse
Source§fn clone(&self) -> SuiPastObjectResponse
fn clone(&self) -> SuiPastObjectResponse
Returns a duplicate 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 SuiPastObjectResponse
impl Debug for SuiPastObjectResponse
Source§impl<'de> Deserialize<'de> for SuiPastObjectResponse
impl<'de> Deserialize<'de> for SuiPastObjectResponse
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 SuiPastObjectResponse
impl PartialEq for SuiPastObjectResponse
Source§impl Serialize for SuiPastObjectResponse
impl Serialize for SuiPastObjectResponse
impl Eq for SuiPastObjectResponse
impl StructuralPartialEq for SuiPastObjectResponse
Auto Trait Implementations§
impl !Freeze for SuiPastObjectResponse
impl RefUnwindSafe for SuiPastObjectResponse
impl Send for SuiPastObjectResponse
impl Sync for SuiPastObjectResponse
impl Unpin for SuiPastObjectResponse
impl UnwindSafe for SuiPastObjectResponse
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