Trait elrond_wasm::io::EndpointResult [−][src]
pub trait EndpointResult: Sized {
type DecodeAs;
fn finish<FA>(&self, api: FA)
where
FA: ManagedTypeApi + EndpointFinishApi + Clone + 'static;
}
Expand description
All types that are returned from endpoints need to implement this trait.
Associated Types
Required methods
fn finish<FA>(&self, api: FA) where
FA: ManagedTypeApi + EndpointFinishApi + Clone + 'static,
Implementors
type DecodeAs = BoxedBytes
type DecodeAs = IgnoreVarArgs
type DecodeAs = EsdtTokenPaymentMultiArg<M>
impl<M, T> EndpointResult for ManagedCountedMultiResultVec<M, T> where
M: ManagedTypeApi,
T: ManagedVecItem + EndpointResult,
impl<M, T> EndpointResult for ManagedCountedMultiResultVec<M, T> where
M: ManagedTypeApi,
T: ManagedVecItem + EndpointResult,
type DecodeAs = ManagedCountedMultiResultVec<M, T>
impl<M, T> EndpointResult for ManagedMultiResultVec<M, T> where
M: ManagedTypeApi,
T: EndpointResult,
impl<M, T> EndpointResult for ManagedMultiResultVec<M, T> where
M: ManagedTypeApi,
T: EndpointResult,
type DecodeAs = ManagedMultiResultVec<M, T::DecodeAs>
impl<M, T> EndpointResult for ManagedMultiResultVecEager<M, T> where
M: ManagedTypeApi,
T: ManagedVecItem + EndpointResult,
impl<M, T> EndpointResult for ManagedMultiResultVecEager<M, T> where
M: ManagedTypeApi,
T: ManagedVecItem + EndpointResult,
type DecodeAs = ManagedMultiResultVecEager<M, T>
impl<SA> EndpointResult for UserMapper<SA> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
impl<SA> EndpointResult for UserMapper<SA> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
Behaves like a MultiResultVec
when an endpoint result, and lists all users addresses.type DecodeAs = MultiResultVec<ManagedAddress<SA>>
impl<SA> EndpointResult for AsyncCall<SA> where
SA: SendApi + ManagedTypeApi + StorageWriteApi + 'static,
impl<SA> EndpointResult for AsyncCall<SA> where
SA: SendApi + ManagedTypeApi + StorageWriteApi + 'static,
impl<SA, T> EndpointResult for LinkedListMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + NestedEncode + NestedDecode + Clone + EndpointResult,
impl<SA, T> EndpointResult for LinkedListMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + NestedEncode + NestedDecode + Clone + EndpointResult,
type DecodeAs = MultiResultVec<T::DecodeAs>
impl<SA, T> EndpointResult for QueueMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + EndpointResult,
impl<SA, T> EndpointResult for QueueMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + EndpointResult,
Behaves like a MultiResultVec when an endpoint result.
type DecodeAs = MultiResultVec<T::DecodeAs>
impl<SA, T> EndpointResult for SetMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + NestedEncode + NestedDecode + EndpointResult,
impl<SA, T> EndpointResult for SetMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + NestedEncode + NestedDecode + EndpointResult,
Behaves like a MultiResultVec when an endpoint result.
type DecodeAs = MultiResultVec<T::DecodeAs>
impl<SA, T> EndpointResult for SingleValueMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + EndpointResult,
impl<SA, T> EndpointResult for SingleValueMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + EndpointResult,
impl<SA, T> EndpointResult for UnorderedSetMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + NestedEncode + NestedDecode + EndpointResult,
impl<SA, T> EndpointResult for UnorderedSetMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + NestedEncode + NestedDecode + EndpointResult,
Behaves like a MultiResultVec when an endpoint result.
type DecodeAs = MultiResultVec<T::DecodeAs>
impl<SA, T> EndpointResult for VecMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + EndpointResult,
impl<SA, T> EndpointResult for VecMapper<SA, T> where
SA: StorageReadApi + StorageWriteApi + ManagedTypeApi + ErrorApi + Clone + 'static,
T: TopEncode + TopDecode + EndpointResult,
Behaves like a MultiResultVec when an endpoint result.