#[repr(C)]pub struct SimpleWalletBaseAuthorizeArgs {
pub state_ptr: NonNull<<VariableBytes as IoType>::PointerType>,
pub state_size: NonNull<u32>,
pub header_ptr: NonNull<<TransactionHeader as IoType>::PointerType>,
pub header_size: NonNull<u32>,
pub read_slots_ptr: NonNull<<TxHandlerSlots as IoType>::PointerType>,
pub read_slots_size: NonNull<u32>,
pub write_slots_ptr: NonNull<<TxHandlerSlots as IoType>::PointerType>,
pub write_slots_size: NonNull<u32>,
pub payload_ptr: NonNull<<TxHandlerPayload as IoType>::PointerType>,
pub payload_size: NonNull<u32>,
pub seal_ptr: NonNull<<TxHandlerSeal as IoType>::PointerType>,
pub seal_size: NonNull<u32>,
}
Expand description
Data structure containing expected input for external method invocation, eventually calling simple_wallet_base_authorize()
on the other side by the host.
This can be used with Env
, though there are helper methods on this provided by extension trait that allow not dealing with this struct directly in simpler cases.
Fields§
§state_ptr: NonNull<<VariableBytes as IoType>::PointerType>
§state_size: NonNull<u32>
Size of the contents state_ptr
points to
header_ptr: NonNull<<TransactionHeader as IoType>::PointerType>
§header_size: NonNull<u32>
Size of the contents header_ptr
points to
read_slots_ptr: NonNull<<TxHandlerSlots as IoType>::PointerType>
§read_slots_size: NonNull<u32>
Size of the contents read_slots_ptr
points to
write_slots_ptr: NonNull<<TxHandlerSlots as IoType>::PointerType>
§write_slots_size: NonNull<u32>
Size of the contents write_slots_ptr
points to
payload_ptr: NonNull<<TxHandlerPayload as IoType>::PointerType>
§payload_size: NonNull<u32>
Size of the contents payload_ptr
points to
seal_ptr: NonNull<<TxHandlerSeal as IoType>::PointerType>
§seal_size: NonNull<u32>
Size of the contents seal_ptr
points to
Implementations§
Source§impl SimpleWalletBaseAuthorizeArgs
impl SimpleWalletBaseAuthorizeArgs
Sourcepub fn new(
state: &VariableBytes,
header: &TransactionHeader,
read_slots: &TxHandlerSlots,
write_slots: &TxHandlerSlots,
payload: &TxHandlerPayload,
seal: &TxHandlerSeal,
) -> Self
pub fn new( state: &VariableBytes, header: &TransactionHeader, read_slots: &TxHandlerSlots, write_slots: &TxHandlerSlots, payload: &TxHandlerPayload, seal: &TxHandlerSeal, ) -> Self
Create a new instance
Trait Implementations§
Source§impl ExternalArgs for SimpleWalletBaseAuthorizeArgs
impl ExternalArgs for SimpleWalletBaseAuthorizeArgs
Source§const FINGERPRINT: MethodFingerprint
const FINGERPRINT: MethodFingerprint
Fingerprint of the method being called
Auto Trait Implementations§
impl Freeze for SimpleWalletBaseAuthorizeArgs
impl RefUnwindSafe for SimpleWalletBaseAuthorizeArgs
impl !Send for SimpleWalletBaseAuthorizeArgs
impl !Sync for SimpleWalletBaseAuthorizeArgs
impl Unpin for SimpleWalletBaseAuthorizeArgs
impl UnwindSafe for SimpleWalletBaseAuthorizeArgs
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