Struct dharitri_wasm::types::DctTokenPaymentMultiValue
source · pub struct DctTokenPaymentMultiValue<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> DctTokenPaymentMultiValue<M>
impl<M: ManagedTypeApi> DctTokenPaymentMultiValue<M>
pub fn into_dct_token_payment(self) -> DctTokenPayment<M>
Trait Implementations§
source§impl<M: Clone + ManagedTypeApi> Clone for DctTokenPaymentMultiValue<M>
impl<M: Clone + ManagedTypeApi> Clone for DctTokenPaymentMultiValue<M>
source§fn clone(&self) -> DctTokenPaymentMultiValue<M>
fn clone(&self) -> DctTokenPaymentMultiValue<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: Debug + ManagedTypeApi> Debug for DctTokenPaymentMultiValue<M>
impl<M: Debug + ManagedTypeApi> Debug for DctTokenPaymentMultiValue<M>
source§impl<M: ManagedTypeApi> From<DctTokenPayment<M>> for DctTokenPaymentMultiValue<M>
impl<M: ManagedTypeApi> From<DctTokenPayment<M>> for DctTokenPaymentMultiValue<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 for DctTokenPaymentMultiValue<M>
impl<M: ManagedTypeApi> ManagedVecItem for DctTokenPaymentMultiValue<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).§type Ref<'a> = DctTokenPaymentMultiValue<M>
type Ref<'a> = DctTokenPaymentMultiValue<M>
Reference representation of the ManagedVec item. Read more
source§fn from_byte_reader<Reader: FnMut(&mut [u8])>(reader: Reader) -> Self
fn from_byte_reader<Reader: FnMut(&mut [u8])>(reader: Reader) -> Self
Parses given bytes as a an owned object.
source§unsafe fn from_byte_reader_as_borrow<'a, Reader: FnMut(&mut [u8])>(
reader: Reader
) -> Self::Ref<'a>
unsafe fn from_byte_reader_as_borrow<'a, Reader: FnMut(&mut [u8])>( reader: Reader ) -> Self::Ref<'a>
Parses given bytes as a representation of the object, either owned, or a reference. Read more
fn to_byte_writer<R, Writer: FnMut(&[u8]) -> R>(&self, writer: Writer) -> R
source§impl<M: PartialEq + ManagedTypeApi> PartialEq for DctTokenPaymentMultiValue<M>
impl<M: PartialEq + ManagedTypeApi> PartialEq for DctTokenPaymentMultiValue<M>
source§fn eq(&self, other: &DctTokenPaymentMultiValue<M>) -> bool
fn eq(&self, other: &DctTokenPaymentMultiValue<M>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<M> TopDecodeMulti for DctTokenPaymentMultiValue<M>where
M: ManagedTypeApi,
impl<M> TopDecodeMulti for DctTokenPaymentMultiValue<M>where
M: ManagedTypeApi,
fn multi_decode_or_handle_err<I, H>(
input: &mut I,
h: H
) -> Result<Self, H::HandledErr>where
I: TopDecodeMultiInput,
H: DecodeErrorHandler,
source§const IS_SINGLE_VALUE: bool = false
const IS_SINGLE_VALUE: bool = false
Used to optimize single value loading of endpoint arguments.
fn multi_decode<I>(input: &mut I) -> Result<Self, DecodeError>where
I: TopDecodeMultiInput,
source§impl<M> TopDecodeMultiLength for DctTokenPaymentMultiValue<M>where
M: ManagedTypeApi,
impl<M> TopDecodeMultiLength for DctTokenPaymentMultiValue<M>where
M: ManagedTypeApi,
source§impl<M> TopEncodeMulti for DctTokenPaymentMultiValue<M>where
M: ManagedTypeApi,
impl<M> TopEncodeMulti for DctTokenPaymentMultiValue<M>where
M: ManagedTypeApi,
source§fn multi_encode_or_handle_err<O, H>(
&self,
output: &mut O,
h: H
) -> Result<(), H::HandledErr>where
O: TopEncodeMultiOutput,
H: EncodeErrorHandler,
fn multi_encode_or_handle_err<O, H>(
&self,
output: &mut O,
h: H
) -> Result<(), H::HandledErr>where
O: TopEncodeMultiOutput,
H: EncodeErrorHandler,
Version of
top_encode that can handle errors as soon as they occur.
For instance in can exit immediately and make sure that if it returns, it is a success.
By not deferring error handling, this can lead to somewhat smaller bytecode.source§fn multi_encode<O>(&self, output: &mut O) -> Result<(), EncodeError>where
O: TopEncodeMultiOutput,
fn multi_encode<O>(&self, output: &mut O) -> Result<(), EncodeError>where
O: TopEncodeMultiOutput,
Attempt to serialize the value to ouput.
source§impl<M> TypeAbi for DctTokenPaymentMultiValue<M>where
M: ManagedTypeApi,
impl<M> TypeAbi for DctTokenPaymentMultiValue<M>where
M: ManagedTypeApi,
fn type_name() -> TypeName
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: Eq + ManagedTypeApi> Eq for DctTokenPaymentMultiValue<M>
impl<M: ManagedTypeApi> StructuralPartialEq for DctTokenPaymentMultiValue<M>
Auto Trait Implementations§
impl<M> CodecFromSelf for DctTokenPaymentMultiValue<M>
impl<M> RefUnwindSafe for DctTokenPaymentMultiValue<M>where
<M as HandleTypeInfo>::BigIntHandle: RefUnwindSafe,
<M as HandleTypeInfo>::ManagedBufferHandle: RefUnwindSafe,
impl<M> Send for DctTokenPaymentMultiValue<M>
impl<M> Sync for DctTokenPaymentMultiValue<M>
impl<M> Unpin for DctTokenPaymentMultiValue<M>where
<M as HandleTypeInfo>::BigIntHandle: Unpin,
<M as HandleTypeInfo>::ManagedBufferHandle: Unpin,
impl<M> UnwindSafe for DctTokenPaymentMultiValue<M>where
<M as HandleTypeInfo>::BigIntHandle: UnwindSafe,
<M as HandleTypeInfo>::ManagedBufferHandle: 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