#[repr(C)]pub struct ExampleNewArgs {
pub owner_ptr: NonNull<Address>,
pub total_supply_ptr: NonNull<<Balance as IoType>::PointerType>,
pub total_supply_size: NonNull<u32>,
}
Expand description
Data structure containing expected input for external method invocation, eventually calling new()
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§
§owner_ptr: NonNull<Address>
§total_supply_ptr: NonNull<<Balance as IoType>::PointerType>
§total_supply_size: NonNull<u32>
Size of the contents total_supply_ptr
points to
Trait Implementations§
Source§impl ExternalArgs for ExampleNewArgs
impl ExternalArgs for ExampleNewArgs
Source§const FINGERPRINT: MethodFingerprint
const FINGERPRINT: MethodFingerprint
Fingerprint of the method being called
Auto Trait Implementations§
impl Freeze for ExampleNewArgs
impl RefUnwindSafe for ExampleNewArgs
impl !Send for ExampleNewArgs
impl !Sync for ExampleNewArgs
impl Unpin for ExampleNewArgs
impl UnwindSafe for ExampleNewArgs
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