Struct dharitri_wasm::types::SendToken
source · pub struct SendToken<SA>where
SA: CallTypeApi + StorageReadApi + 'static,{
pub to: ManagedAddress<SA>,
pub token: TokenIdentifier<SA>,
pub amount: BigUint<SA>,
pub data: ManagedBuffer<SA>,
/* private fields */
}Fields§
§to: ManagedAddress<SA>§token: TokenIdentifier<SA>§amount: BigUint<SA>§data: ManagedBuffer<SA>Implementations§
source§impl<SA> SendToken<SA>where
SA: CallTypeApi + StorageReadApi + 'static,
impl<SA> SendToken<SA>where
SA: CallTypeApi + StorageReadApi + 'static,
pub fn new( to: ManagedAddress<SA>, token: TokenIdentifier<SA>, amount: BigUint<SA>, data: ManagedBuffer<SA> ) -> Self
Trait Implementations§
source§impl<SA> EndpointResult for SendToken<SA>where
SA: CallTypeApi + StorageReadApi + 'static,
impl<SA> EndpointResult for SendToken<SA>where
SA: CallTypeApi + StorageReadApi + 'static,
source§impl<SA> TypeAbi for SendToken<SA>where
SA: CallTypeApi + StorageReadApi + 'static,
impl<SA> TypeAbi for SendToken<SA>where
SA: CallTypeApi + StorageReadApi + 'static,
fn type_name() -> String
source§fn provide_type_descriptions<TDC: TypeDescriptionContainer>(_: &mut TDC)
fn provide_type_descriptions<TDC: TypeDescriptionContainer>(_: &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.
Auto Trait Implementations§
impl<SA> RefUnwindSafe for SendToken<SA>where
SA: RefUnwindSafe,
impl<SA> Send for SendToken<SA>where
SA: Send,
impl<SA> Sync for SendToken<SA>where
SA: Sync,
impl<SA> Unpin for SendToken<SA>where
SA: Unpin,
impl<SA> UnwindSafe for SendToken<SA>where
SA: 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