Struct dharitri_wasm::types::DctTokenPaymentMultiArg
source · pub struct DctTokenPaymentMultiArg<M: ManagedTypeApi> { /* private fields */ }Expand description
Thin wrapper around DctTokenPayment, which has different I/O behaviour:
- as input, is built from 3 arguments instead of 1: token identifier, nonce, value
- as output, it becomes 3 results instead of 1: token identifier, nonce, value
Implementations§
source§impl<M: ManagedTypeApi> DctTokenPaymentMultiArg<M>
impl<M: ManagedTypeApi> DctTokenPaymentMultiArg<M>
pub fn into_dct_token_payment(self) -> DctTokenPayment<M>
Trait Implementations§
source§impl<M: Clone + ManagedTypeApi> Clone for DctTokenPaymentMultiArg<M>
impl<M: Clone + ManagedTypeApi> Clone for DctTokenPaymentMultiArg<M>
source§fn clone(&self) -> DctTokenPaymentMultiArg<M>
fn clone(&self) -> DctTokenPaymentMultiArg<M>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<M> ContractCallArg for &DctTokenPaymentMultiArg<M>where
M: ManagedTypeApi,
impl<M> ContractCallArg for &DctTokenPaymentMultiArg<M>where
M: ManagedTypeApi,
fn push_dyn_arg<O: DynArgOutput>(&self, output: &mut O)
source§impl<M> ContractCallArg for DctTokenPaymentMultiArg<M>where
M: ManagedTypeApi,
impl<M> ContractCallArg for DctTokenPaymentMultiArg<M>where
M: ManagedTypeApi,
fn push_dyn_arg<O: DynArgOutput>(&self, output: &mut O)
source§impl<M: Debug + ManagedTypeApi> Debug for DctTokenPaymentMultiArg<M>
impl<M: Debug + ManagedTypeApi> Debug for DctTokenPaymentMultiArg<M>
source§impl<M> DynArg for DctTokenPaymentMultiArg<M>where
M: ManagedTypeApi,
impl<M> DynArg for DctTokenPaymentMultiArg<M>where
M: ManagedTypeApi,
source§impl<M> EndpointResult for DctTokenPaymentMultiArg<M>where
M: ManagedTypeApi,
impl<M> EndpointResult for DctTokenPaymentMultiArg<M>where
M: ManagedTypeApi,
source§impl<M: ManagedTypeApi> From<DctTokenPayment<M>> for DctTokenPaymentMultiArg<M>
impl<M: ManagedTypeApi> From<DctTokenPayment<M>> for DctTokenPaymentMultiArg<M>
source§fn from(obj: DctTokenPayment<M>) -> Self
fn from(obj: DctTokenPayment<M>) -> Self
Converts to this type from the input type.
source§impl<M: ManagedTypeApi> ManagedVecItem<M> for DctTokenPaymentMultiArg<M>
impl<M: ManagedTypeApi> ManagedVecItem<M> for DctTokenPaymentMultiArg<M>
source§const PAYLOAD_SIZE: usize = 16usize
const PAYLOAD_SIZE: usize = 16usize
Size of the data stored in the underlying
ManagedBuffer.source§const SKIPS_RESERIALIZATION: bool = false
const SKIPS_RESERIALIZATION: bool = false
If true, then the encoding of the item is identical to the payload,
and no further conversion is necessary
(the underlying buffer can be used as-is during serialization).
False for all managed types, but true for basic types (like
u32).fn from_byte_reader<Reader: FnMut(&mut [u8])>(api: M, reader: Reader) -> Self
fn to_byte_writer<R, Writer: FnMut(&[u8]) -> R>(&self, writer: Writer) -> R
source§impl<M: PartialEq + ManagedTypeApi> PartialEq for DctTokenPaymentMultiArg<M>
impl<M: PartialEq + ManagedTypeApi> PartialEq for DctTokenPaymentMultiArg<M>
source§fn eq(&self, other: &DctTokenPaymentMultiArg<M>) -> bool
fn eq(&self, other: &DctTokenPaymentMultiArg<M>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<M> TypeAbi for DctTokenPaymentMultiArg<M>where
M: ManagedTypeApi,
impl<M> TypeAbi for DctTokenPaymentMultiArg<M>where
M: ManagedTypeApi,
fn type_name() -> String
source§fn provide_type_descriptions<TDC: TypeDescriptionContainer>(
accumulator: &mut TDC
)
fn provide_type_descriptions<TDC: TypeDescriptionContainer>( accumulator: &mut TDC )
A type can provide more than its own description.
For instance, a struct can also provide the descriptions of the type of its fields.
TypeAbi doesn’t care for the exact accumulator type,
which is abstracted by the TypeDescriptionContainer trait.
impl<M: ManagedTypeApi> StructuralPartialEq for DctTokenPaymentMultiArg<M>
Auto Trait Implementations§
impl<M> RefUnwindSafe for DctTokenPaymentMultiArg<M>where
M: RefUnwindSafe,
impl<M> Send for DctTokenPaymentMultiArg<M>where
M: Send,
impl<M> Sync for DctTokenPaymentMultiArg<M>where
M: Sync,
impl<M> Unpin for DctTokenPaymentMultiArg<M>where
M: Unpin,
impl<M> UnwindSafe for DctTokenPaymentMultiArg<M>where
M: UnwindSafe,
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