Struct aptos_api_types::MoveConverter
source · [−]pub struct MoveConverter<'a, R: ?Sized> { /* private fields */ }Implementations
sourceimpl<'a, R: MoveResolverExt + ?Sized> MoveConverter<'a, R>
impl<'a, R: MoveResolverExt + ?Sized> MoveConverter<'a, R>
pub fn new(inner: &'a R) -> Self
pub fn try_into_resources<'b>(
&self,
data: impl Iterator<Item = (StructTag, &'b [u8])>
) -> Result<Vec<MoveResource>>
pub fn try_into_resource<'b>(
&self,
typ: &StructTag,
bytes: &'b [u8]
) -> Result<MoveResource>
pub fn move_struct_fields<'b>(
&self,
typ: &StructTag,
bytes: &'b [u8]
) -> Result<Vec<(Identifier, MoveValue)>>
pub fn try_into_pending_transaction(
&self,
txn: SignedTransaction
) -> Result<Transaction>
pub fn try_into_onchain_transaction(
&self,
timestamp: u64,
data: TransactionOnChainData
) -> Result<Transaction>
pub fn into_transaction_info(
&self,
version: u64,
info: &TransactionInfo,
accumulator_root_hash: HashValue,
write_set: WriteSet
) -> TransactionInfo
pub fn try_into_transaction_payload(
&self,
payload: TransactionPayload
) -> Result<TransactionPayload>
pub fn try_into_write_set_payload(
&self,
payload: WriteSetPayload
) -> Result<WriteSetPayload>
pub fn try_into_write_set_change(
&self,
state_key: StateKey,
op: WriteOp
) -> Result<WriteSetChange>
pub fn try_access_path_into_write_set_change(
&self,
state_key_hash: String,
access_path: AccessPath,
op: WriteOp
) -> Result<WriteSetChange>
pub fn try_table_item_into_write_set_change(
&self,
state_key_hash: String,
handle: TableHandle,
key: Vec<u8>,
op: WriteOp
) -> Result<WriteSetChange>
pub fn try_into_events(&self, events: &[ContractEvent]) -> Result<Vec<Event>>
pub fn try_into_signed_transaction(
&self,
txn: UserTransactionRequest,
chain_id: ChainId
) -> Result<SignedTransaction>
pub fn try_into_raw_transaction(
&self,
txn: UserTransactionRequest,
chain_id: ChainId
) -> Result<RawTransaction>
pub fn try_into_aptos_core_transaction_payload(
&self,
payload: TransactionPayload
) -> Result<TransactionPayload>
pub fn try_into_vm_values(
&self,
func: MoveFunction,
args: Vec<Value>
) -> Result<Vec<MoveValue>>
pub fn try_into_vm_value(
&self,
type_tag: &TypeTag,
val: Value
) -> Result<MoveValue>
pub fn try_into_vm_value_vector(
&self,
layout: &MoveTypeLayout,
val: Value
) -> Result<MoveValue>
pub fn try_into_vm_value_struct(
&self,
layout: &MoveStructLayout,
val: Value
) -> Result<MoveValue>
pub fn try_into_move_value(
&self,
typ: &TypeTag,
bytes: &[u8]
) -> Result<MoveValue>
Auto Trait Implementations
impl<'a, R> !RefUnwindSafe for MoveConverter<'a, R>
impl<'a, R> !Send for MoveConverter<'a, R>
impl<'a, R> !Sync for MoveConverter<'a, R>
impl<'a, R: ?Sized> Unpin for MoveConverter<'a, R>
impl<'a, R: ?Sized> UnwindSafe for MoveConverter<'a, R> where
R: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more