pub trait IotaTransactionBlockResponseT: OptionalSend {
type Error;
type NativeResponse;
// Required methods
fn effects_is_none(&self) -> bool;
fn effects_is_some(&self) -> bool;
fn to_string(&self) -> String;
fn effects_execution_status(&self) -> Option<IotaExecutionStatus>;
fn effects_created(&self) -> Option<Vec<OwnedObjectRef>>;
fn as_native_response(&self) -> &Self::NativeResponse;
fn as_mut_native_response(&mut self) -> &mut Self::NativeResponse;
fn clone_native_response(&self) -> Self::NativeResponse;
}
Expand description
Adapter Allowing to query information from an IotaTransactionBlockResponse instance. As IotaTransactionBlockResponse pulls too many dependencies we need to hide it behind a trait.
Required Associated Types§
Sourcetype NativeResponse
type NativeResponse
The response type used in the platform specific client sdk
Required Methods§
Sourcefn effects_is_none(&self) -> bool
fn effects_is_none(&self) -> bool
Indicates if IotaTransactionBlockResponse::effects is None
Sourcefn effects_is_some(&self) -> bool
fn effects_is_some(&self) -> bool
Indicates if there are Some(effects)
Sourcefn effects_execution_status(&self) -> Option<IotaExecutionStatus>
fn effects_execution_status(&self) -> Option<IotaExecutionStatus>
If effects_is_some(), returns a clone of the IotaTransactionBlockEffectsAPI::status() Otherwise, returns None
Sourcefn effects_created(&self) -> Option<Vec<OwnedObjectRef>>
fn effects_created(&self) -> Option<Vec<OwnedObjectRef>>
If effects_is_some(), returns IotaTransactionBlockEffectsAPI::created() as owned Vec. Otherwise, returns None
Sourcefn as_native_response(&self) -> &Self::NativeResponse
fn as_native_response(&self) -> &Self::NativeResponse
Returns a reference to the platform specific client sdk response instance wrapped by this adapter
Sourcefn as_mut_native_response(&mut self) -> &mut Self::NativeResponse
fn as_mut_native_response(&mut self) -> &mut Self::NativeResponse
Returns a mutable reference to the platform specific client sdk response instance wrapped by this adapter
Sourcefn clone_native_response(&self) -> Self::NativeResponse
fn clone_native_response(&self) -> Self::NativeResponse
Returns a clone of the wrapped platform specific client sdk response