Struct wallet_wasm_js::Payload
source · pub struct Payload(pub(crate) Payload);
Tuple Fields§
§0: Payload
Implementations§
source§impl Payload
impl Payload
pub fn new_public(choice: u8) -> Payload
pub fn new_private( vote_plan: &VotePlanId, options: usize, choice: u8, public_key: &ElectionPublicKey ) -> Result<Payload, JsValue>
Trait Implementations§
source§impl FromWasmAbi for Payload
impl FromWasmAbi for Payload
source§impl IntoWasmAbi for Payload
impl IntoWasmAbi for Payload
source§impl LongRefFromWasmAbi for Payload
impl LongRefFromWasmAbi for Payload
source§impl OptionFromWasmAbi for Payload
impl OptionFromWasmAbi for Payload
source§impl OptionIntoWasmAbi for Payload
impl OptionIntoWasmAbi for Payload
source§impl RefFromWasmAbi for Payload
impl RefFromWasmAbi for Payload
source§impl RefMutFromWasmAbi for Payload
impl RefMutFromWasmAbi for Payload
Auto Trait Implementations§
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§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
.