#[repr(C)]pub struct InternalArgs<'internal_args> {
pub env_ptr: NonNull<Env<'internal_args>>,
pub from_address_ptr: NonNull<Address>,
pub from_ptr: NonNull<<<ExampleFt as Contract>::Slot as IoType>::PointerType>,
pub from_size: *mut u32,
pub from_capacity: NonNull<u32>,
pub to_address_ptr: NonNull<Address>,
pub to_ptr: NonNull<<<ExampleFt as Contract>::Slot as IoType>::PointerType>,
pub to_size: *mut u32,
pub to_capacity: NonNull<u32>,
pub amount_ptr: NonNull<<Balance as IoType>::PointerType>,
pub amount_size: NonNull<u32>,
/* private fields */
}
Expand description
Data structure containing expected input to example_ft_transfer()
, it is used internally by the contract, there should be no need to construct it explicitly except maybe in contract’s own tests
Fields§
§env_ptr: NonNull<Env<'internal_args>>
§from_address_ptr: NonNull<Address>
§from_ptr: NonNull<<<ExampleFt as Contract>::Slot as IoType>::PointerType>
§from_size: *mut u32
Size of the contents from_ptr
points to
from_capacity: NonNull<u32>
Capacity of the allocated memory from_ptr
points to
to_address_ptr: NonNull<Address>
§to_ptr: NonNull<<<ExampleFt as Contract>::Slot as IoType>::PointerType>
§to_size: *mut u32
Size of the contents to_ptr
points to
to_capacity: NonNull<u32>
Capacity of the allocated memory to_ptr
points to
amount_ptr: NonNull<<Balance as IoType>::PointerType>
§amount_size: NonNull<u32>
Size of the contents amount_ptr
points to
Trait Implementations§
Auto Trait Implementations§
impl<'internal_args> Freeze for InternalArgs<'internal_args>
impl<'internal_args> !RefUnwindSafe for InternalArgs<'internal_args>
impl<'internal_args> !Send for InternalArgs<'internal_args>
impl<'internal_args> !Sync for InternalArgs<'internal_args>
impl<'internal_args> Unpin for InternalArgs<'internal_args>
impl<'internal_args> !UnwindSafe for InternalArgs<'internal_args>
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