pub struct ExtData {
pub recipient: Vec<u8>,
pub relayer: Vec<u8>,
pub ext_amount: i128,
pub fee: u128,
pub refund: u128,
pub token: Vec<u8>,
pub encrypted_output1: Vec<u8>,
pub encrypted_output2: Vec<u8>,
}
Fields§
§recipient: Vec<u8>
§relayer: Vec<u8>
§ext_amount: i128
§fee: u128
§refund: u128
§token: Vec<u8>
§encrypted_output1: Vec<u8>
§encrypted_output2: Vec<u8>
Implementations§
Source§impl ExtData
impl ExtData
pub fn new( recipient: Uint8Array, relayer: Uint8Array, ext_amount: JsString, fee: JsString, refund: JsString, token: Uint8Array, encrypted_output1: Uint8Array, encrypted_output2: Uint8Array, ) -> ExtData
pub fn get_encode(&self) -> Uint8Array
Trait Implementations§
Source§impl Decode for ExtData
impl Decode for ExtData
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for ExtData
impl Encode for ExtData
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl FromWasmAbi for ExtData
impl FromWasmAbi for ExtData
Source§impl IntoAbiToken for ExtData
impl IntoAbiToken for ExtData
Source§impl IntoWasmAbi for ExtData
impl IntoWasmAbi for ExtData
Source§impl LongRefFromWasmAbi for ExtData
impl LongRefFromWasmAbi for ExtData
Source§impl OptionFromWasmAbi for ExtData
impl OptionFromWasmAbi for ExtData
Source§impl OptionIntoWasmAbi for ExtData
impl OptionIntoWasmAbi for ExtData
Source§impl RefFromWasmAbi for ExtData
impl RefFromWasmAbi for ExtData
Source§impl RefMutFromWasmAbi for ExtData
impl RefMutFromWasmAbi for ExtData
Source§impl TryFromJsValue for ExtData
impl TryFromJsValue for ExtData
Source§impl VectorFromWasmAbi for ExtData
impl VectorFromWasmAbi for ExtData
Source§impl VectorIntoWasmAbi for ExtData
impl VectorIntoWasmAbi for ExtData
impl EncodeLike for ExtData
impl SupportsConstructor for ExtData
impl SupportsInstanceProperty for ExtData
impl SupportsStaticProperty for ExtData
Auto Trait Implementations§
impl Freeze for ExtData
impl RefUnwindSafe for ExtData
impl Send for ExtData
impl Sync for ExtData
impl Unpin for ExtData
impl UnwindSafe for ExtData
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
Source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.