Trait iota_json_rpc_types::IotaMoveObject

source ·
pub trait IotaMoveObject: Sized {
    // Required methods
    fn try_from_layout(
        object: MoveObject,
        layout: MoveStructLayout,
    ) -> Result<Self, Error>;
    fn type_(&self) -> &StructTag;

    // Provided method
    fn try_from(o: MoveObject, resolver: &impl GetModule) -> Result<Self, Error> { ... }
}

Required Methods§

source

fn try_from_layout( object: MoveObject, layout: MoveStructLayout, ) -> Result<Self, Error>

source

fn type_(&self) -> &StructTag

Provided Methods§

source

fn try_from(o: MoveObject, resolver: &impl GetModule) -> Result<Self, Error>

Object Safety§

This trait is not object safe.

Implementors§