identity_iota_interaction

Trait IotaTransactionBlockResponseT

Source
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§

Source

type Error

Error type used

Source

type NativeResponse

The response type used in the platform specific client sdk

Required Methods§

Source

fn effects_is_none(&self) -> bool

Indicates if IotaTransactionBlockResponse::effects is None

Source

fn effects_is_some(&self) -> bool

Indicates if there are Some(effects)

Source

fn to_string(&self) -> String

Returns Debug representation of the IotaTransactionBlockResponse

Source

fn effects_execution_status(&self) -> Option<IotaExecutionStatus>

If effects_is_some(), returns a clone of the IotaTransactionBlockEffectsAPI::status() Otherwise, returns None

Source

fn effects_created(&self) -> Option<Vec<OwnedObjectRef>>

If effects_is_some(), returns IotaTransactionBlockEffectsAPI::created() as owned Vec. Otherwise, returns None

Source

fn as_native_response(&self) -> &Self::NativeResponse

Returns a reference to the platform specific client sdk response instance wrapped by this adapter

Source

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

Source

fn clone_native_response(&self) -> Self::NativeResponse

Returns a clone of the wrapped platform specific client sdk response

Implementors§